loop._sock_sendall: In case of EAGAIN just return--try again later

This commit is contained in:
Yury Selivanov 2016-05-22 13:43:14 -04:00
parent af28b8b83a
commit 85b7f3d753
1 changed files with 2 additions and 1 deletions

View File

@ -633,7 +633,8 @@ cdef class Loop:
try: try:
n = sock.send(data) n = sock.send(data)
except (BlockingIOError, InterruptedError): except (BlockingIOError, InterruptedError):
n = 0 # Try next time.
return
except Exception as exc: except Exception as exc:
fut.set_exception(exc) fut.set_exception(exc)
self._remove_writer(fd) self._remove_writer(fd)