diff options
author | Aldo Cortesi <aldo@nullcube.com> | 2012-06-26 14:49:40 +1200 |
---|---|---|
committer | Aldo Cortesi <aldo@nullcube.com> | 2012-06-26 14:49:40 +1200 |
commit | 33be5a72bf1dccd52f087f7759d6bb3650274354 (patch) | |
tree | dbcb258e4399806094b9950cd29733c2ef888846 /libpathod | |
parent | 15aab74ddb2aeac595615c08df481d31b4189827 (diff) | |
download | mitmproxy-33be5a72bf1dccd52f087f7759d6bb3650274354.tar.gz mitmproxy-33be5a72bf1dccd52f087f7759d6bb3650274354.tar.bz2 mitmproxy-33be5a72bf1dccd52f087f7759d6bb3650274354.zip |
Fixed the WSGI server hang in netlib, remove fudge.
Diffstat (limited to 'libpathod')
-rw-r--r-- | libpathod/pathod.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/libpathod/pathod.py b/libpathod/pathod.py index 23558c2f..d4869750 100644 --- a/libpathod/pathod.py +++ b/libpathod/pathod.py @@ -7,6 +7,7 @@ class PathodError(Exception): pass class PathodHandler(tcp.BaseHandler): + wbufsize = 0 sni = None def handle_sni(self, connection): self.sni = connection.get_servername() @@ -77,11 +78,7 @@ class PathodHandler(tcp.BaseHandler): version.NAMEVERSION ) app.serve(req, self.wfile) - # FIXME: Tear down the connection. We have some problem with - # connection termination that causes some clients (e.g. Chrome) - # to hang. It appears to be related to responses that have no - # Content-Length header. - self.finish() + logging.debug("%s: wsgi %s %s"%(self.client_address, method, path)) class Pathod(tcp.TCPServer): |