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

TCP sockets never close #24

Closed
ToveRumar opened this issue Nov 11, 2024 · 1 comment
Closed

TCP sockets never close #24

ToveRumar opened this issue Nov 11, 2024 · 1 comment

Comments

@ToveRumar
Copy link
Contributor

When a socket is remotely or locally disconneted it is not closed properly.
In the posix socket framework to need to explicitly close a socket for the resources to be freed and to be able to open new sockets in its place.

A part of this is also that we do not handle errors when sending data, any error is interpreted as a disconnect and the socket descriptor is set to -1. This means we can no longer send or receive anything on this socket since we lost the descriptor. All data traffic would be stopped. This could be an ok handling, if the socket was closed after but since it is not, this is an issue.

@gemenerik
Copy link
Member

Fixed in #25

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

2 participants