Skip to content

Why are TcpStream writes async at all? #5288

Answered by sfackler
JonathanWilbur asked this question in Q&A
Discussion options

You must be logged in to vote

There is a finite buffer in the kernel of data that is queued up to be written out over the network. The kernel cannot write that data until it confirms that the recipient has already received the previously sent data. If the buffer fills, new writes need to wait.

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@JonathanWilbur
Comment options

Answer selected by Noah-Kennedy
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants