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

net: tcp: echo server stops if CONFIG_POSIX_MAX_FDS is not set #19543

Closed
rmstoi opened this issue Oct 2, 2019 · 2 comments
Closed

net: tcp: echo server stops if CONFIG_POSIX_MAX_FDS is not set #19543

rmstoi opened this issue Oct 2, 2019 · 2 comments
Assignees
Labels
area: Networking bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug

Comments

@rmstoi
Copy link
Collaborator

rmstoi commented Oct 2, 2019

If CONFIG_POSIX_MAX_FDS is not set or commented out in prj.conf echo server stops when receiving basic TCP SYN:

[00:00:11.760,000] <inf> net_echo_server_sample: Waiting for TCP connection on port 4242 (IPv4)...
[00:00:11.760,000] <err> net_echo_server_sample: Error in accept (IPv4): -23 - stopping server
[00:00:11.760,000] <inf> net_echo_server_sample: Stopping...

tcpsyn.pcap.gz

@rmstoi rmstoi added bug The issue is a bug, or the PR is fixing a bug area: Networking labels Oct 2, 2019
@jukkar jukkar added the priority: low Low impact/importance bug label Oct 2, 2019
@jukkar
Copy link
Member

jukkar commented Oct 2, 2019

The culprit is probably the fact that the value is too low, by default it is 4 which is too low if multiple listeners are enabled in echo-server.

@jukkar
Copy link
Member

jukkar commented Oct 18, 2019

There is not much we can do in this case, the application does not have enough resources to continue and it will exit.

@jukkar jukkar closed this as completed Oct 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Networking bug The issue is a bug, or the PR is fixing a bug priority: low Low impact/importance bug
Projects
None yet
Development

No branches or pull requests

2 participants