From 85b7f3d753a377362eac98843ce6bacb22ae2702 Mon Sep 17 00:00:00 2001 From: Yury Selivanov Date: Sun, 22 May 2016 13:43:14 -0400 Subject: [PATCH] loop._sock_sendall: In case of EAGAIN just return--try again later --- uvloop/loop.pyx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/uvloop/loop.pyx b/uvloop/loop.pyx index 46feba6..c4cb2d5 100644 --- a/uvloop/loop.pyx +++ b/uvloop/loop.pyx @@ -633,7 +633,8 @@ cdef class Loop: try: n = sock.send(data) except (BlockingIOError, InterruptedError): - n = 0 + # Try next time. + return except Exception as exc: fut.set_exception(exc) self._remove_writer(fd)