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

Commits on Apr 8, 2015

  1. reuseport: env var to turn it off

    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.
    jbenet committed Apr 8, 2015
    Configuration menu
    Copy the full SHA
    f1566e2 View commit details
    Browse the repository at this point in the history