Skip to content

Commit 447e124

Browse files
committed
Fix a race condition in TLS
Relevant CPython PR: python/cpython#7175
1 parent 6b85fd3 commit 447e124

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

uvloop/sslproto.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -563,10 +563,10 @@ class SSLProtocol(object):
563563
# (b'', 1) is a special value in _process_write_backlog() to do
564564
# the SSL handshake
565565
self._write_backlog.append((b'', 1))
566-
self._loop.call_soon(self._process_write_backlog)
567566
self._handshake_timeout_handle = \
568567
self._loop.call_later(self._ssl_handshake_timeout,
569568
self._check_handshake_timeout)
569+
self._process_write_backlog()
570570

571571
def _check_handshake_timeout(self):
572572
if self._in_handshake is True:

0 commit comments

Comments
 (0)