@@ -455,7 +455,7 @@ cdef class SSLProtocol:
455
455
# start handshake timeout count down
456
456
self ._handshake_timeout_handle = \
457
457
self ._loop.call_later(self ._ssl_handshake_timeout,
458
- lambda : self ._check_handshake_timeout())
458
+ lambda self : self ._check_handshake_timeout(), self )
459
459
460
460
try :
461
461
self ._sslobj = self ._sslcontext.wrap_bio(
@@ -469,7 +469,7 @@ cdef class SSLProtocol:
469
469
else :
470
470
self ._do_handshake()
471
471
472
- cdef _check_handshake_timeout(self ):
472
+ def _check_handshake_timeout (self ):
473
473
if self ._state == DO_HANDSHAKE:
474
474
msg = (
475
475
f" SSL handshake is taking longer than "
@@ -535,10 +535,10 @@ cdef class SSLProtocol:
535
535
self ._set_state(FLUSHING)
536
536
self ._shutdown_timeout_handle = \
537
537
self ._loop.call_later(self ._ssl_shutdown_timeout,
538
- lambda : self ._check_shutdown_timeout())
538
+ lambda self : self ._check_shutdown_timeout(), self )
539
539
self ._do_flush()
540
540
541
- cdef _check_shutdown_timeout(self ):
541
+ def _check_shutdown_timeout (self ):
542
542
if self ._state in (FLUSHING, SHUTDOWN):
543
543
self ._transport._force_close(
544
544
aio_TimeoutError(' SSL shutdown timed out' ))
0 commit comments