IO timeout in threaded application

Skip Montanaro skip at pobox.com
Mon Aug 11 21:28:56 CEST 2003


    Gordon> What's the easiest way to accomplish that?  Should I just
    Gordon> subclass smtplib's SMTP class and override the "connect"
    Gordon> function with one that creates a socket with a timeout?

Right now that's probably your best bet.  Setting timeouts from higher-level
packages which use sockets has not yet been tackled.

Skip






More information about the Python-list mailing list