Skip to content

Commit

Permalink
Fix a race condition in TLS
Browse files Browse the repository at this point in the history
Relevant CPython PR: python/cpython#7175
  • Loading branch information
1st1 committed May 28, 2018
1 parent 6b85fd3 commit 447e124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uvloop/sslproto.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -563,10 +563,10 @@ class SSLProtocol(object):
# (b'', 1) is a special value in _process_write_backlog() to do
# the SSL handshake
self._write_backlog.append((b'', 1))
self._loop.call_soon(self._process_write_backlog)
self._handshake_timeout_handle = \
self._loop.call_later(self._ssl_handshake_timeout,
self._check_handshake_timeout)
self._process_write_backlog()

def _check_handshake_timeout(self):
if self._in_handshake is True:
Expand Down

0 comments on commit 447e124

Please sign in to comment.