mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
write should return length of data
This commit is contained in:
parent
6714b30ddc
commit
522933416c
@ -76,7 +76,7 @@ def write(sock, data):
|
||||
if bytes < len(buf):
|
||||
buf = buf[bytes:]
|
||||
continue
|
||||
return bytes
|
||||
return len(data)
|
||||
except socket.error, e:
|
||||
if e[0] in (errno.EWOULDBLOCK, errno.EAGAIN):
|
||||
break
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user