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 18:49:36 +02:00
parent 992019c006
commit 45cff66cf6
4 changed files with 26 additions and 0 deletions

View file

@ -115,6 +115,8 @@ class async_chat(asyncore.dispatcher):
try:
data = self.recv(self.ac_in_buffer_size)
except BlockingIOError:
return
except OSError as why:
self.handle_error()
return