Skip to content

Commit 5eb1fb3

Browse files
committed
ssl: Better warning message when a SSL handshake timeout happens
1 parent ec85c79 commit 5eb1fb3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

uvloop/sslproto.pyx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,9 @@ class SSLProtocol(object):
571571

572572
def _check_handshake_timeout(self):
573573
if self._in_handshake is True:
574-
aio_logger.warning("%r stalled during handshake", self)
574+
aio_logger.warning(
575+
"SSL handshake for %r is taking longer than %r seconds: "
576+
"aborting the connection", self, self._ssl_handshake_timeout)
575577
self._abort()
576578

577579
def _on_handshake_complete(self, handshake_exc):

0 commit comments

Comments
 (0)