[New-bugs-announce] [issue2916] urlgrabber.grabber calls setdefaulttimeout

Mads Kiilerich report at bugs.python.org
Mon May 19 17:52:12 CEST 2008


New submission from Mads Kiilerich <mads at kiilerich.com>:

Module docstring says """Setting this option causes urlgrabber to call
the settimeout method on the Socket object used for the request.""" But
actually it temporarily changes the global default timeout. 

If other threads are creating sockets in this short timespan they might
fail in unexpected ways.

There might not be any other easy way to set a timeout. The long term
solution should be to provide a way to do it right. A short term
workaround it to update the documentation to describe current behaviour.

----------
components: Library (Lib)
messages: 67066
nosy: kiilerix
severity: normal
status: open
title: urlgrabber.grabber calls setdefaulttimeout
versions: Python 2.5

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2916>
__________________________________


More information about the New-bugs-announce mailing list