File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -453,13 +453,8 @@ cdef class SSLProtocol:
453453 self ._set_state(DO_HANDSHAKE)
454454
455455 # start handshake timeout count down
456- # XXX: This is a workaround to call cdef method and clear reference to
457- # self when the handle is cancelled (because uvloop currently clears
458- # only args, it'll be okay to remove the lambda x: x() after the fix to
459- # clear also the callback)
460456 self ._handshake_timeout_handle = \
461457 self ._loop.call_later(self ._ssl_handshake_timeout,
462- lambda x : x(),
463458 lambda : self ._check_handshake_timeout())
464459
465460 try :
@@ -538,13 +533,8 @@ cdef class SSLProtocol:
538533 self ._abort(None )
539534 else :
540535 self ._set_state(FLUSHING)
541- # XXX: This is a workaround to call cdef method and clear reference
542- # to self when the handle is cancelled (because uvloop currently
543- # clears only args, it'll be okay to remove the lambda x: x() after
544- # the fix to clear also the callback)
545536 self ._shutdown_timeout_handle = \
546537 self ._loop.call_later(self ._ssl_shutdown_timeout,
547- lambda x : x(),
548538 lambda : self ._check_shutdown_timeout())
549539 self ._do_flush()
550540
You can’t perform that action at this time.
0 commit comments