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

Fix dropped packets in get_names #2

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

Fix dropped packets in get_names #2

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Jul 26, 2017

Becuase OTP 17 was not playing well with
epmd -names -- it was inconistantly returning
the [s]names when there were nodes assigned to
ports -- taking a look at the doc for gen_tcp
clued me into a possible issue:

As far as I can tell, when a socket is
{active, false} and {packet, raw|0} has been
set (via inet or otherwise), the gen_tcp:recv
routine ought to loop to receive all the data.

Becuase OTP 17 was not playing well with
`epmd -names` -- it was inconistantly returning
the [s]names when there were nodes assigned to
ports -- taking a look at the doc for gen_tcp
clued me into a possible issue:

As far as I can tell, when a socket is
`{active, false}` and `{packet, raw|0}` has been
set (via inet or otherwise), the `gen_tcp:recv`
routine ought to loop to receive all the data.
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.

0 participants