Skip to content

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