From 0c4f4b598c97031dc28d016f5588adb003c35b5d Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Mon, 20 Feb 2012 16:33:08 -0600 Subject: [PATCH] Don't swallow SSL EOF errors. --- utils/websocket.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/utils/websocket.py b/utils/websocket.py index cf8f423c..646160cb 100644 --- a/utils/websocket.py +++ b/utils/websocket.py @@ -603,7 +603,10 @@ Sec-WebSocket-Accept: %s\r except ssl.SSLError: _, x, _ = sys.exc_info() 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: raise