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, loewis, ned.deily, nicdumz, pitrou, ronaldoussoren, roysmith
Date 2010-11-21.13:43:10
SpamBayes Score 5.9232064e-12
Marked as misclassified No
Message-id <1290346991.84.0.0347353957549.issue7995@psf.upfronthosting.co.za>
In-reply-to
Content
It seems to me that it's a reasonable request. There is indeed a bug, since Python uses non-blocking sockets to implement its "timeout" feature, and flags inheritance means Python's view of whether the socket is non-blocking is not in sync with reality on the OS side.

I think the patch should be opt-out rather than opt-in: that code path should probably be enabled for everything but Linux (and Windows?).

Another possibility is to force inheritance of flags, such that an accept()ed socket inherits the timeout settings of its parent (even under Linux).
History
Date User Action Args
2010-11-21 13:43:11pitrousetrecipients: + pitrou, loewis, ronaldoussoren, exarkun, roysmith, giampaolo.rodola, ned.deily, nicdumz, bbangert, Justin.Cappos
2010-11-21 13:43:11pitrousetmessageid: <1290346991.84.0.0347353957549.issue7995@psf.upfronthosting.co.za>
2010-11-21 13:43:10pitroulinkissue7995 messages
2010-11-21 13:43:10pitroucreate