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

Connections close after 1.7 minutes of stale activity #22

Open
SnowyCoder opened this issue Feb 7, 2022 · 1 comment
Open

Connections close after 1.7 minutes of stale activity #22

SnowyCoder opened this issue Feb 7, 2022 · 1 comment

Comments

@SnowyCoder
Copy link

SnowyCoder commented Feb 7, 2022

Hello,

I'm building a non-torrent open-source project using webtorrent trackers, I try to be as polite as possible (only one persistent connection is present, the other players disconnect once a webrtc connection is live), you can check it out here.

I found out that most webtorrent trackers close the connection after 1.7 minutes without data, even if the tracker requested an interval of 120 seconds (2m), I didn't see anything related in this code so I'm assuming it's external (nginx timeout or similar?).
Is it an expected behaviour?

A workaround that I found is to send {"action":"scrape","info_hash":[]} as a "ping" message (unfortunately, browser js can't access websocket PINGs) but it seems not to work on openwebtorrent tracker (the connection gets forcibly closed, also not expected from the code).

Thanks for all of your work!

@SnowyCoder
Copy link
Author

Also, seems related to: #14
(sorry for opening the issue on the wrong repo, I only found that after posting)

@alxhotel alxhotel transferred this issue from OpenWebTorrent/openwebtorrent-www Feb 7, 2022
@SnowyCoder SnowyCoder changed the title Connections close after 1.7 seconds of stale activity Connections close after 1.7 minutes of stale activity Feb 7, 2022
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

1 participant