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

OnDisconnecting after received message from client #307

Open
tardeli2 opened this issue Jul 30, 2024 · 0 comments
Open

OnDisconnecting after received message from client #307

tardeli2 opened this issue Jul 30, 2024 · 0 comments

Comments

@tardeli2
Copy link

Hi, Im using the TcpServer to start a service and when the client connects message is received but immediately OnDisconnect() is triggered. After I monitor the messages via Wireshark I see following:
image
As you can see the client was able to sent message but after that it sends [FIN, ACK] which means the client informs the server that no more data is expected to be sent. This seems like a valid TCP flow. The problem is that the server is responding to that with another [FIN, ACK] and after that one the client closes the connection which results in triggering the OnDisconnecting().
Is there a way to avoid sending the [FIN, ACK] from the server, because that one is signaling the client to close the session?

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

No branches or pull requests

1 participant