Skip to content

gh-103462: Ensure SelectorSocketTransport.writelines registers a writer when data is still pending#103463

Merged
kumaraditya303 merged 7 commits intopython:mainfrom
alisaifee:fix-incomplete-writeline
Apr 13, 2023
Merged

gh-103462: Ensure SelectorSocketTransport.writelines registers a writer when data is still pending#103463
kumaraditya303 merged 7 commits intopython:mainfrom
alisaifee:fix-incomplete-writeline

Conversation

@alisaifee
Copy link
Contributor

@alisaifee alisaifee commented Apr 12, 2023

Description

When the payload used with SelectorSocketTransport.writelines is too large to write in one call to either socket.send or socket.sendmsg the remaining buffer needs to be handled by registering a write handler.

Related Pull Request / Issue

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Calling SelectorSocketTransport.writelines with a very large payload doesn't get completely written to the socket

3 participants