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

Implement ungracful client disconnect into JAPI_TcpKeepAliveFunctionality unit test #139

Open
Michael-M-Baron opened this issue Nov 6, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Michael-M-Baron
Copy link
Collaborator

A new feature was implemented in #49 using the TCP keep alive mechanism kernel built in to remove ungraceful disconnected client sockets (Due to network failure for example).

A unit test was added to test this feature with disconnecting clients. Implementing an ungraceful disconnect however is not trivial and was there skipped and moved to a separate issue (this issue here).

Currently the client socket is closed properly with close(). This has to be replaced with some code ungracefully killing the socket. May be mocking or some kind of that can be used for this purpose.

Lines of codes to be changed:
japi_test.cc

@Michael-M-Baron Michael-M-Baron added the enhancement New feature or request label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant