Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3347fc2

Browse files
committed
Fixes #1185
1 parent 3f6c3b4 commit 3347fc2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/request/httpshandler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ def create_sock():
5353
break
5454
else:
5555
sock.close()
56-
except (ssl.SSLError, socket.error), errMsg:
56+
except (ssl.SSLError, socket.error, httplib.BadStatusLine), errMsg:
57+
self._tunnel_host = None
5758
logger.debug("SSL connection error occurred ('%s')" % errMsg)
5859

5960
if not success:

0 commit comments

Comments
 (0)