Issue #23804: Fix SSL recv/read(0) to not return 1024 bytes

This commit is contained in:
Martin Panter 2016-03-28 00:22:09 +00:00
parent ce913877e4
commit f6b1d66a3c
4 changed files with 15 additions and 5 deletions

View file

@ -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