Skip to content

Update client.rs example - #214

Open
lukeh990 wants to merge 2 commits into
rustls:mainfrom
lukeh990:patch-1
Open

lukeh990 wants to merge 2 commits into
rustls:mainfrom
lukeh990:patch-1

Conversation

@lukeh990

Copy link
Copy Markdown

When the client shutdown call exists after the client stops sending and starts listening, no EOF is sent to the server so it will wait until the IO timeout to stop reading and finish flushing its buffer and shutdown the socket. By placing the client shutdown immediately after it finishes it sends an EOF causing the sever to stop reading and to finish flushing the echo back to the client.

lukeh990 and others added 2 commits October 20, 2026 00:45
When the client shutdown call exists after the client stops sending and starts listening, no EOF is sent to the server so it will wait until the IO timeout to stop reading and finish flushing its buffer and shutdown the socket. By placing the client shutdown immediately after it finishes it sends an EOF causing the sever to stop reading and to finish flushing the echo back to the client.
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.

1 participant