This commit is contained in:
benoitc 2010-03-04 19:29:22 +01:00
parent 8622604f44
commit 4a56af4a2b
2 changed files with 1 additions and 2 deletions

View File

@ -135,7 +135,6 @@ class TeeInput(object):
def _tee(self, length):
""" fetch partial body"""
while True:
print len(self._buf)
chunk, self.buf = self.parser.filter_body(self.buf)
if chunk:
self.tmp.write(chunk)

View File

@ -90,7 +90,7 @@ def close(sock):
pass
def read_partial(sock, length, buf=None):
tmp_buf = skt.recv(length)
tmp_buf = sock.recv(length)
if not buf:
return tmp_buf