Skip to content

Commit 34b7320

Browse files
committed
Remove no longer needed hacks from sslproto.pyx
1 parent f0a945d commit 34b7320

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

uvloop/sslproto.pyx

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)