mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
just send
This commit is contained in:
parent
7d31b224b9
commit
6badf22041
@ -104,13 +104,8 @@ def read_partial(sock, length):
|
||||
return data
|
||||
|
||||
def write(sock, data):
|
||||
try:
|
||||
sock.sendall(data)
|
||||
except socket.error, e:
|
||||
if e[0] not in (errno.EWOULDBLOCK, errno.EAGAIN):
|
||||
pass
|
||||
raise
|
||||
|
||||
sock.sendall(data)
|
||||
|
||||
def write_nonblock(sock, data):
|
||||
timeout = sock.gettimeout()
|
||||
if timeout != 0.0:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user