Commit 0c4f4b59 authored by Joel Martin's avatar Joel Martin

Don't swallow SSL EOF errors.

parent c6f3919c
...@@ -603,7 +603,10 @@ Sec-WebSocket-Accept: %s\r ...@@ -603,7 +603,10 @@ Sec-WebSocket-Accept: %s\r
except ssl.SSLError: except ssl.SSLError:
_, x, _ = sys.exc_info() _, x, _ = sys.exc_info()
if x.args[0] == ssl.SSL_ERROR_EOF: if x.args[0] == ssl.SSL_ERROR_EOF:
raise self.EClose("") if len(x.args) > 1:
raise self.EClose(x.args[1])
else:
raise self.EClose("Got SSL_ERROR_EOF")
else: else:
raise raise
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment