This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients Justin.Cappos, bbangert, exarkun, giampaolo.rodola, kristjan.jonsson, loewis, ned.deily, nicdumz, pitrou, ronaldoussoren, rosslagerwall, roysmith
Date 2011-03-30.16:20:45
SpamBayes Score 3.9831e-09
Marked as misclassified No
Message-id <1301502043.3973.11.camel@localhost.localdomain>
In-reply-to <>
> socket.defaulttimeout(None)
> s = socket.socket()
> s.settimeout(0) #nonblocking
> s.bind()
> s2, a = s.accept()
> print s2.gettimeout() #prints ´none´, meaning blocking
> s2.receive(10) #raises EWOULDBLOCK error, since internally it is non-blocking

Could you post working Python 3 code which demonstrates the issue on

> This means that any module that uses the "pure" _socket.socket object,
> such as C extensions, will not get the "correct" behaviour.

Using undocumented implementation details (such as the _socket module)
is, AFAIK, unsupported.

Anyway, if you want the code to be changed, please propose a patch so
that it can be judged on its own merits (together with tests that
demonstrate the improvement, if any).
Date User Action Args
2011-03-30 16:20:47pitrousetrecipients: + pitrou, loewis, ronaldoussoren, exarkun, roysmith, kristjan.jonsson, giampaolo.rodola, ned.deily, nicdumz, bbangert, Justin.Cappos, rosslagerwall
2011-03-30 16:20:45pitroulinkissue7995 messages
2011-03-30 16:20:45pitroucreate