mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
we want to flush here too.
This commit is contained in:
parent
2348fc238d
commit
52978cb16f
@ -34,6 +34,9 @@ class TeeInput(object):
|
|||||||
chunk, self.buf = parser.filter_body(buf)
|
chunk, self.buf = parser.filter_body(buf)
|
||||||
if chunk:
|
if chunk:
|
||||||
self.tmp.write(chunk)
|
self.tmp.write(chunk)
|
||||||
|
self.tmp.flush()
|
||||||
|
if hasattr(self.tmp, 'fileno'):
|
||||||
|
os.fsync(self.tmp.fileno())
|
||||||
self._finalize()
|
self._finalize()
|
||||||
self.tmp.seek(0)
|
self.tmp.seek(0)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user