blocking forever with urllib

Skip Montanaro skip at
Fri Aug 31 02:31:11 CEST 2001

    Mike> Is there a way to specify a timeout for this library? I can't find
    Mike> a way in the documentation.

There's nothing I'm aware of in the core distribution, but I have seen two
third-party modules that provide this.  One is timeoutsocket, the other
timeout_socket.  Despite the similar names, they approach the problem in
fundamentally different ways.  I think you will find timeoutsocket easier to
use.  Here are pointers to both:

Skip Montanaro (skip at

More information about the Python-list mailing list