10000 GH-91166: zero copy SelectorSocketTransport transport implementation by kumaraditya303 · Pull Request #31871 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-91166: zero copy SelectorSocketTransport transport implementation #31871

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

Merged
merged 23 commits into from
Dec 24, 2022
Merged
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix tests
  • Loading branch information
kumaraditya303 committed Nov 28, 2022
commit bdb1bdabf67ece7533ef5874c3bcf9897876243f
3 changes: 1 addition & 2 deletions Lib/asyncio/selector_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -1127,8 +1127,7 @@ def _write_send(self):
if self._conn_lost:
return
try:
buffer = bytearray().join(self._buffer)
self._buffer.clear()
buffer = self._buffer.popleft()
n = self._sock.send(buffer)
if n != len(buffer):
# Not all data was written
Expand Down
0