From bc1ecf26ef43fd94b75f84f81c8405779416c63a Mon Sep 17 00:00:00 2001 From: Andres Riancho Date: Fri, 13 Apr 2018 09:53:16 -0300 Subject: [PATCH] Only set the timeout for HTTP connections, not HTTPS (for now) This is to avoid https://github.com/pyca/pyopenssl/issues/168 --- w3af/core/data/url/handlers/keepalive/handler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/w3af/core/data/url/handlers/keepalive/handler.py b/w3af/core/data/url/handlers/keepalive/handler.py index dba64e079a..870756a1c4 100644 --- a/w3af/core/data/url/handlers/keepalive/handler.py +++ b/w3af/core/data/url/handlers/keepalive/handler.py @@ -293,7 +293,8 @@ def _update_socket_timeout(self, conn, request): if conn.sock is None: return - conn.sock.settimeout(request.get_timeout()) + if isinstance(conn, HTTPConnection): + conn.sock.settimeout(request.get_timeout()) def _start_transaction(self, conn, req): """