diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-11-29 22:17:33 +0100 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-11-29 22:17:33 +0100 |
commit | 073a286098f09775f821db2e668fd2d1a771bb74 (patch) | |
tree | 16872e1c2989d80d9c07968025ddb39ef3d9d7fb | |
parent | bd8ae910d23821cc88437f486cf9eb3f2bef9470 (diff) | |
download | mitmproxy-073a286098f09775f821db2e668fd2d1a771bb74.tar.gz mitmproxy-073a286098f09775f821db2e668fd2d1a771bb74.tar.bz2 mitmproxy-073a286098f09775f821db2e668fd2d1a771bb74.zip |
websocket: reduce connection timeout
-rw-r--r-- | mitmproxy/proxy/protocol/websocket.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mitmproxy/proxy/protocol/websocket.py b/mitmproxy/proxy/protocol/websocket.py index ec1c6ebc..1b859dc7 100644 --- a/mitmproxy/proxy/protocol/websocket.py +++ b/mitmproxy/proxy/protocol/websocket.py @@ -154,7 +154,7 @@ class WebSocketLayer(base.Layer): try: while not self.channel.should_exit.is_set(): - r = tcp.ssl_read_select(conns, 0.5) + r = tcp.ssl_read_select(conns, 0.1) for conn in r: source_conn = self.client_conn if conn == client else self.server_conn other_conn = self.server_conn if conn == client else self.client_conn |