Skip to content
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

Add option to TCP client/session to send remaining bytes when disconnecting #195

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

marco-stephan
Copy link

Adds an option for the TcpSession/TcpClient to delay a disconnect until all queued asynchronous send operations are completed.

The option is called OptionSendRemainingBytesOnDisconnect. The thread causing the disconnect is blocked until all remaining bytes have been sent. This option can be used to avoid calling the blocking Send(...) functions while still ensuring that all data is send.

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.

2 participants