This commit is contained in:
Kovid Goyal 2017-06-23 11:42:35 +05:30
parent 90622d4129
commit a43efc8a5a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -355,7 +355,7 @@ class ServerLoop(object):
def on_ssl_servername(self, socket, server_name, ssl_context): def on_ssl_servername(self, socket, server_name, ssl_context):
c = self.connection_map.get(socket.fileno()) c = self.connection_map.get(socket.fileno())
if c.ssl_handshake_done: if getattr(c, 'ssl_handshake_done', False):
# We do not allow client initiated SSL renegotiation # We do not allow client initiated SSL renegotiation
return ssl.ALERT_DESCRIPTION_NO_RENEGOTIATION return ssl.ALERT_DESCRIPTION_NO_RENEGOTIATION