You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Jurko Gospodnetić <ju...@docte.hr> on 2009/05/03 18:46:32 UTC

How to make PySVN abort trying to establish a connection to the Server.

Hi.

   I am playing around with PySVN and I managed to get it to do most 
things I thought of, but I can not seem to get it to abort setting up a 
network connection to the server.

   I can assign a Client object's callback_cancel callback and that 
allows me to terminate long-lasting SVN operations once it is SVN that 
is controlling them. However, if an operation gets stuck at attempting 
to open a network connection (e.g. because the server is not currently 
available or some firewall is blocking traffic) it simply waits for a 
lower level network operation timeout (2 minutes in my case) and there 
seems to be nothing I can do to terminate such an operation.

   I've implemented KeyboardInterrupt handing in my test script and it 
can currently terminate the script cleanly in all cases except this one.

   Anyone have any suggestions on how I can achieve this or is does 
PySVN simply not allow this?

   Using Python 2.6 and PySVN 1.7.0 on Windows XP SP3.

   Thanks in advance.

   Best regards,
     Jurko Gospodnetić

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2048479

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].