Skip to content

Commit

Permalink
Only set the timeout for HTTP connections, not HTTPS (for now)
Browse files Browse the repository at this point in the history
This is to avoid pyca/pyopenssl#168
  • Loading branch information
Andres Riancho committed Apr 13, 2018
1 parent 4bcf02a commit bc1ecf2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion w3af/core/data/url/handlers/keepalive/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit bc1ecf2

Please sign in to comment.