mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
parent
79e14a98dd
commit
1f3bdddfb2
@ -379,7 +379,7 @@ class Response(object):
|
|||||||
sockno = self.sock.fileno()
|
sockno = self.sock.fileno()
|
||||||
sent = 0
|
sent = 0
|
||||||
|
|
||||||
for m in range(0, nbytes, BLKSIZE):
|
while sent != nbytes:
|
||||||
count = min(nbytes - sent, BLKSIZE)
|
count = min(nbytes - sent, BLKSIZE)
|
||||||
sent += sendfile(sockno, fileno, offset + sent, count)
|
sent += sendfile(sockno, fileno, offset + sent, count)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user