(Merge 3.4) Issue #16133: The asynchat.async_chat.handle_read() method now

ignores BlockingIOError exceptions. Initial patch written by Xavier de Gaye.

Document also in asyncore documentation that recv() may raise BlockingIOError.
This commit is contained in:
Victor Stinner 2014-07-24 19:00:28 +02:00
commit 316b16de13
4 changed files with 26 additions and 0 deletions

View file

@ -216,6 +216,10 @@ any that have been added to the map during asynchronous service) is closed.
empty bytes object implies that the channel has been closed from the
other end.
Note that :meth:`recv` may raise :exc:`BlockingIOError` , even though
:func:`select.select` or :func:`select.poll` has reported the socket
ready for reading.
.. method:: listen(backlog)