we want to flush here too.

This commit is contained in:
benoitc 2010-02-27 18:23:53 +01:00
parent 2348fc238d
commit 52978cb16f

View File

@ -34,6 +34,9 @@ class TeeInput(object):
chunk, self.buf = parser.filter_body(buf)
if chunk:
self.tmp.write(chunk)
self.tmp.flush()
if hasattr(self.tmp, 'fileno'):
os.fsync(self.tmp.fileno())
self._finalize()
self.tmp.seek(0)