From 073a286098f09775f821db2e668fd2d1a771bb74 Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Tue, 29 Nov 2016 22:17:33 +0100 Subject: [PATCH] websocket: reduce connection timeout --- mitmproxy/proxy/protocol/websocket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitmproxy/proxy/protocol/websocket.py b/mitmproxy/proxy/protocol/websocket.py index ec1c6ebc5..1b859dc72 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