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

Remove peer MaxConnectionTime #190

Merged
merged 2 commits into from
Feb 5, 2025
Merged

Remove peer MaxConnectionTime #190

merged 2 commits into from
Feb 5, 2025

Conversation

erikdubbelboer
Copy link
Member

@erikdubbelboer erikdubbelboer commented Feb 5, 2025

There is no need to always disconnect the Websocket connection after an hour. This just causes issues once in a while with db queries being executed at the same time and then being cancelled.

Edit: it's actually causing issues quite often withMarkPeerAsActive. This function is scheduled every 30 seconds with a ticker. Because it's a ticker and keeps rhythm perfectly it is always running right after the hour and almost always causes a failed with context deadline exceeded error.

There is no need to always disconnect the Websocket connection after an
hour. This just causes issues once in a while with db queries being
executed at the same time and then being cancelled.
@erikdubbelboer erikdubbelboer enabled auto-merge (squash) February 5, 2025 09:28
@erikdubbelboer erikdubbelboer merged commit 9df37aa into main Feb 5, 2025
6 checks passed
@erikdubbelboer erikdubbelboer deleted the rm-MaxConnectionTime branch February 5, 2025 09:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants