mirror of
https://github.com/python/cpython.git
synced 2025-11-19 10:46:17 +00:00
Issue #23804: Fix SSL recv/read(0) to not return 1024 bytes
This commit is contained in:
parent
ce913877e4
commit
f6b1d66a3c
4 changed files with 15 additions and 5 deletions
|
|
@ -842,7 +842,7 @@ SSL Sockets
|
|||
|
||||
SSL sockets also have the following additional methods and attributes:
|
||||
|
||||
.. method:: SSLSocket.read(len=0, buffer=None)
|
||||
.. method:: SSLSocket.read(len=1024, buffer=None)
|
||||
|
||||
Read up to *len* bytes of data from the SSL socket and return the result as
|
||||
a ``bytes`` instance. If *buffer* is specified, then read into the buffer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue