Skip to content

How to wait all packet are sent before StreamShutdown/Close #2187

Answered by ThadHouse
ami-GS asked this question in Q&A
Discussion options

You must be logged in to vote

You can call shutdown while there is still data in flight, as long as it's not an abortive shutdown. that will just shut down the send side, you can still receive data. Then you can wait for the ShutdownComplete callback, and close once you receive that.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by nibanks
Comment options

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants