Don't swallow SSL EOF errors.
This commit is contained in:
parent
cb839e85c4
commit
9decfe1c95
|
|
@ -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:
|
||||||
|
if len(x.args) > 1:
|
||||||
raise self.EClose(x.args[1])
|
raise self.EClose(x.args[1])
|
||||||
|
else:
|
||||||
|
raise self.EClose("Got SSL_ERROR_EOF")
|
||||||
else:
|
else:
|
||||||
raise
|
raise
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue