Stefan Palme wrote: (top-posting undone)
[Peter] >> I believe this can only be set globally: >> >> import socket >> socket.setdefaulttimeout(seconds) [Stefan] > Uuuh this is no solution for me, because the > website-checking tool is part of a very very big > application running in an application server, so > globally setting the timeout may break a lot of > other things... > > But when there is a "default timeout" (as indicated by > the method name) - isn't there a "per-socket timeout" > too? Yes, but it isn't as easily available... Perhaps you find some ideas here: http://mail.python.org/pipermail/python-dev/2007-February/070897.html Peter -- http://mail.python.org/mailman/listinfo/python-list