Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.6] bpo-27340: Use memoryview in SSLSocket.sendall() (GH-3384) #3434

Merged
merged 1 commit into from
Sep 7, 2017

Conversation

tiran
Copy link
Member

@tiran tiran commented Sep 7, 2017

  • bpo-27340: Use memoryview in SSLSocket.sendall()

SSLSocket.sendall() now uses memoryview to create slices of data. This fix
support for all bytes-like object. It is also more efficient and avoids
costly copies.

Signed-off-by: Christian Heimes [email protected]

  • Cast view to bytes, fix typo

Signed-off-by: Christian Heimes [email protected].
(cherry picked from commit 888bbdc)

https://bugs.python.org/issue27340

* bpo-27340: Use memoryview in SSLSocket.sendall()

SSLSocket.sendall() now uses memoryview to create slices of data. This fix
support for all bytes-like object. It is also more efficient and avoids
costly copies.

Signed-off-by: Christian Heimes <[email protected]>

* Cast view to bytes, fix typo

Signed-off-by: Christian Heimes <[email protected]>.
(cherry picked from commit 888bbdc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants