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

use INADDR_ANY for increased portability #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eklitzke
Copy link

I believe that there is a subtle portability problem in the current implementation. We would like to bind to any (i.e. all) network interfaces to ensure that all processes can reach Mango, whether they exist on localhost or are external. The correct way to do this is to use the system-defined value for INADDR_ANY.1 However, the current implementation assumes that this will be '0.0.0.0'. While it is certainly true that many operating systems implement INADDR_ANY in this way, I'm worried that Mango could break in unforeseen ways on new and alternative TCP/IP stacks provided by next-generation cloud operating systems. This change should ensure the longevity of Mango by increasing the likelihood that it will be able to correctly adapt in these situations.

1: See http://pubs.opengroup.org/onlinepubs/000095399/basedefs/netinet/in.h.html for details.

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.

1 participant