Browse Source

Don't swallow SSL EOF errors.

Joel Martin 13 năm trước cách đây
mục cha
commit
0c4f4b598c
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      utils/websocket.py

+ 4 - 1
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