File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -408,6 +408,7 @@ def _do_ssl_handshake(self):
408
408
return self .close ()
409
409
else :
410
410
self ._ssl_accepting = False
411
+ super (SSLIOStream , self )._handle_connect ()
411
412
412
413
def _handle_read (self ):
413
414
if self ._ssl_accepting :
@@ -425,7 +426,10 @@ def _handle_connect(self):
425
426
# TODO(bdarnell): cert verification, etc
426
427
self .socket = ssl .wrap_socket (self .socket ,
427
428
do_handshake_on_connect = False )
428
- super (SSLIOStream , self )._handle_connect ()
429
+ # Don't call the superclass's _handle_connect (which is responsible
430
+ # for telling the application that the connection is complete)
431
+ # until we've completed the SSL handshake (so certificates are
432
+ # available, etc).
429
433
430
434
431
435
def _read_from_socket (self ):
You can’t perform that action at this time.
0 commit comments