]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Don't swallow SSL EOF errors.
authorJoel Martin <github@martintribe.org>
Mon, 20 Feb 2012 22:33:08 +0000 (16:33 -0600)
committerJoel Martin <github@martintribe.org>
Mon, 20 Feb 2012 22:33:08 +0000 (16:33 -0600)
utils/websocket.py

index cf8f423c91ec900b938ad4291bf447e28514a3dd..646160cbd62a664db957b086150fdc55524389f8 100644 (file)
@@ -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