[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

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

From: Jurko Gospodnetić <jurko.gospodnetic_at_docte.hr>
Date: Sun, 03 May 2009 20:46:32 +0200

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_at_subversion.tigris.org].
Received on 2009-05-03 20:52:26 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.