mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
dup the socket in TeeInput object
This commit is contained in:
parent
7592d25331
commit
4e6f60f4d8
@ -43,7 +43,7 @@ class TeeInput(object):
|
||||
def __init__(self, socket, parser, buf):
|
||||
self.buf = buf
|
||||
self.parser = parser
|
||||
self.socket = socket
|
||||
self.socket = socket.dup()
|
||||
self._len = parser.content_len
|
||||
if self._len and self._len < MAX_BODY:
|
||||
self.tmp = StringIO.StringIO()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user