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

reuseport: env var to turn it off #1038

Merged
merged 1 commit into from
Apr 8, 2015
Merged

reuseport: env var to turn it off #1038

merged 1 commit into from
Apr 8, 2015

Conversation

jbenet
Copy link
Member

@jbenet jbenet commented Apr 8, 2015

reuseport is a hack. It is necessary for us to do certain kinds of
tcp nat traversal. Ideally, reuseport would be available in go:

golang/go#9661

But until that issue is fixed, we're stuck with this. In some cases,
reuseport is strictly a detriment: nodes are not NATed. This commit
introduces an ENV var IPFS_REUSEPORT that can be set to false to
avoid using reuseport entirely:

IPFS_REUSEPORT=false ipfs daemon

This approach addresses our current need. It could become a config
var if necessary. If reuseport continues to give problems, we should
look into improving it.

reuseport is a hack. It is necessary for us to do certain kinds of
tcp nat traversal. Ideally, reuseport would be available in go:

  golang/go#9661

But until that issue is fixed, we're stuck with this. In some cases,
reuseport is strictly a detriment: nodes are not NATed. This commit
introduces an ENV var IPFS_REUSEPORT that can be set to false to
avoid using reuseport entirely:

  IPFS_REUSEPORT=false ipfs daemon

This approach addresses our current need. It could become a config
var if necessary. If reuseport continues to give problems, we should
look into improving it.
@whyrusleeping whyrusleeping added the status/in-progress In progress label Apr 8, 2015
@jbenet jbenet self-assigned this Apr 8, 2015
jbenet added a commit that referenced this pull request Apr 8, 2015
reuseport: env var to turn it off
@jbenet jbenet merged commit 6036b04 into master Apr 8, 2015
@jbenet jbenet deleted the reuseport-disable branch April 8, 2015 08:29
@jbenet jbenet removed the status/in-progress In progress label Apr 8, 2015
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 this pull request may close these issues.

None yet

2 participants