8000 [docs] Correct typos in SSLContext.sni_callback (GH-30623) · python/cpython@9399dc4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9399dc4

Browse files
[docs] Correct typos in SSLContext.sni_callback (GH-30623)
Co-authored-by: Jörn Heissler <nosuchaddress@joern-heissler.de> (cherry picked from commit f80a97b) Co-authored-by: Jörn Heissler <joernheissler@users.noreply.github.com>
1 parent 9aca412 commit 9399dc4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Doc/library/ssl.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1719,10 +1719,10 @@ to speed up repeated connections from the same clients.
17191719
Due to the early negotiation phase of the TLS connection, only limited
17201720
methods and attributes are usable like
17211721
:meth:`SSLSocket.selected_alpn_protocol` and :attr:`SSLSocket.context`.
1722-
:meth:`SSLSocket.getpeercert`, :meth:`SSLSocket.getpeercert`,
1723-
:meth:`SSLSocket.cipher` and :meth:`SSLSocket.compress` methods require that
1722+
The :meth:`SSLSocket.getpeercert`,
1723+
:meth:`SSLSocket.cipher` and :meth:`SSLSocket.compression` methods require that
17241724
the TLS connection has progressed beyond the TLS Client Hello and therefore
1725-
will not contain return meaningful values nor can they be called safely.
1725+
will not return meaningful values nor can they be called safely.
17261726

17271727
The *sni_callback* function must return ``None`` to allow the
17281728
TLS negotiation to continue. If a TLS failure is required, a constant

0 commit comments

Comments
 (0)
0