curl-and-python
keyboardinterrupt and aborting perform()
Date: Tue, 1 Sep 2009 15:53:14 -0400 (EDT)
In order to get match things up with how urlgrabber worked I need to be
able to have an interrupt handler in the pycurl backend that let's me grab
KeyboardInterrupt and run some code which will determine what should be
done.
The default behavior in urlgrabber is:
ctrl-c switches to another mirror in the mirrorlist (if there is one)
ctrl-c again w/i 2-seconds of the first ctrl-c terminates the process.
Now the first ctrl-c works but I can't seem to see if I'm not properly
killing the execution. Is there a better/nicer way to shutdown the
perform() call? Maybe something I can return from the progressfunction to
tell curl to stop?
Thanks,
-sv
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-and-python
Received on 2009-09-01