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

Detecting dead connections #5

Open
apparentorder opened this issue Apr 19, 2021 · 1 comment · May be fixed by #6
Open

Detecting dead connections #5

apparentorder opened this issue Apr 19, 2021 · 1 comment · May be fixed by #6

Comments

@apparentorder
Copy link

When the TCP connection to the IRC server goes away silently (because of network issues, drowned servers, surprise packet filters and so on), JustIRC does not notice this, as it does not send IRC PINGs by itself.

In that case, it depends on TCP Keepalive to detect a dead connection. Unfortunately, if enabled at all, the default value is two hours. So in case of a dead connection, JustIRC will just hang for two hours before finally terminating.

In my specific case the timeout issues are related to some weird IPv6 setup problems (don't ask), so an option to force using IPv4 only would be appreciated.

@apparentorder apparentorder linked a pull request Apr 19, 2021 that will close this issue
@gkbrk
Copy link
Owner

gkbrk commented May 8, 2021

We should probably start sending PING packets ourselves.

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 a pull request may close this issue.

2 participants