Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upConnect timeout improvements #337
Open
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
WebRTC connections take longer than TCP connections, especially on networks with high latency since there's a lot of roundtrips involved (I experienced this firsthand while traveling in Berlin last week).
As a hack, I made the connect timeout 25s for all connections: https://github.com/feross/bittorrent-swarm/commit/e4f67a137c7fd96b4f16aa23bec23352ea5f076e
Ideally, we treat each type of peer differently. 5s for TCP connections. 25s for WebRTC connections.