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 a connection idle #97

Closed
dariusc93 opened this issue Sep 8, 2023 · 0 comments · Fixed by #98
Closed

Implement a connection idle #97

dariusc93 opened this issue Sep 8, 2023 · 0 comments · Fixed by #98

Comments

@dariusc93
Copy link
Owner

dariusc93 commented Sep 8, 2023

New connections that are established without any activities would close almost immediately. Eg, if the node isnt subscribed to the same topic as another peer, or if dht is not performing queries, the connection may close right away after a connection is established. This is more observed when connecting to another peer over relay from actual use. While this isnt a problem, it might be better to implement a behaviour with a handler that keeps the initial connection alive for a specific amount of time (that is configurable) before allowing swarm to close the connection handler.

Note:

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.

1 participant