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 animus
Recipients animus
Date 2015-10-24.23:03:29
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1445727809.94.0.696138695468.issue25471@psf.upfronthosting.co.za>
In-reply-to
Content
socket created with listening socket set to setblocking(False). gettimeout() of accept()-returned socket returns 0.0 , but recv() method blocks while client is connected and not sending any data. If client disconnects, socket returned by accept() starting return 0-length bytes string without blocking.

glibc doc on recv():
---
If nonblocking mode is set for SOCKET, and no data are available to be read, 'recv' fails immediately rather than waiting.
---

testing server and client code attached.

tested with Python 3.5.0 and Python 2.7.10
History
Date User Action Args
2015-10-24 23:03:30animussetrecipients: + animus
2015-10-24 23:03:29animussetmessageid: <1445727809.94.0.696138695468.issue25471@psf.upfronthosting.co.za>
2015-10-24 23:03:29animuslinkissue25471 messages
2015-10-24 23:03:29animuscreate