Skip to content
This repository has been archived by the owner on May 26, 2022. It is now read-only.

Reuseport reconnect delay #37

Closed
Stebalien opened this issue Apr 4, 2019 · 1 comment
Closed

Reuseport reconnect delay #37

Stebalien opened this issue Apr 4, 2019 · 1 comment

Comments

@Stebalien
Copy link
Member

For some reason, reuseport is causing reconnects to be delayed by 15 seconds, at least on localhost on my machine. This, of course, causes the reconnect to fail because our timeout is 5 seconds.

@marten-seemann
Copy link
Contributor

This might because you can't reuse the port until the TCP connection is actually gone, and not in TIME_WAIT any more. See libp2p/go-reuseport-transport#42 for a more detailed explanation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants