Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

SSLSocket.recv_into(None) returns a bytes object #112457

Copy link
Copy link
Open
@serhiy-storchaka

Description

@serhiy-storchaka
Issue body actions

Normally, SSLSocket.recv_into(buffer) returns an integer -- the number of bytes read into buffer. But if buffer is None and the SSL connection is opened (self._sslobj is not None), it is equivalent to SSLSocket.read(1024) -- read up to 1024 bytes and return the read bytes.

It looks weird and I wonder whether there is a use case for this. This behavior was from the start, from 6e027db where this method was added, so I do not see some obvious error that was introduced later.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.