How to catch socket timeout?
Michael Hudson
mwh at python.net
Wed Sep 24 08:31:17 EDT 2003
Paul <paul at oz.net> writes:
> What's the best way to do this under Python 2.1?
> I believe socket.timeout was a 2.3 feature.
> Wrap it in threads?
There's Tim O'Malley's timeoutsocket.py (google for it), which was the
inspiration for the feature in 2.3 (though I don't think any code from
there actually survived).
Cheers,
mwh
--
31. Simplicity does not precede complexity, but follows it.
-- Alan Perlis, http://www.cs.yale.edu/homes/perlis-alan/quotes.html
More information about the Python-list
mailing list