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 Florian.Ludwig
Recipients Florian.Ludwig, docs@python
Date 2011-09-14.13:41:59
SpamBayes Score 0.000622245
Marked as misclassified No
Message-id <1316007719.98.0.0164178020562.issue12977@psf.upfronthosting.co.za>
In-reply-to
Content
The documentation states:

> In non-blocking mode, if a recv() call doesn’t find any data, [...], a error exception is raised; [0]

Which is wrong. If no data is available recv() does not raise an exception but returns an empty string.

[0] http://docs.python.org/library/socket.html#socket.socket.setblocking
History
Date User Action Args
2011-09-14 13:42:00Florian.Ludwigsetrecipients: + Florian.Ludwig, docs@python
2011-09-14 13:41:59Florian.Ludwigsetmessageid: <1316007719.98.0.0164178020562.issue12977@psf.upfronthosting.co.za>
2011-09-14 13:41:59Florian.Ludwiglinkissue12977 messages
2011-09-14 13:41:59Florian.Ludwigcreate