MCPcopy Index your code
hub / github.com/python/cpython / _start_handshake

Method _start_handshake

Lib/asyncio/sslproto.py:536–550  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

534 # Handshake flow
535
536 def _start_handshake(self):
537 if self._loop.get_debug():
538 logger.debug("%r starts SSL handshake", self)
539 self._handshake_start_time = self._loop.time()
540 else:
541 self._handshake_start_time = None
542
543 self._set_state(SSLProtocolState.DO_HANDSHAKE)
544
545 # start handshake timeout count down
546 self._handshake_timeout_handle = \
547 self._loop.call_later(self._ssl_handshake_timeout,
548 self._check_handshake_timeout)
549
550 self._do_handshake()
551
552 def _check_handshake_timeout(self):
553 if self._state == SSLProtocolState.DO_HANDSHAKE:

Callers 1

connection_madeMethod · 0.95

Calls 6

_set_stateMethod · 0.95
_do_handshakeMethod · 0.95
get_debugMethod · 0.45
debugMethod · 0.45
timeMethod · 0.45
call_laterMethod · 0.45

Tested by

no test coverage detected