Skip to content

Update af_unix.c to increase default max_dgram_qlen #58

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

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

Conversation

sbesse-nam
Copy link

updated max_dgram_qlen, the default of 10 caused problems in BusyBox init system. This may be better to be in a Kconfig somewhere, but unsure where as this default is currently not configurable.

updated max_dgram_qlen, the default of 10 caused problems in BusyBox init system. This may be better to be in a Kconfig somewhere, but unsure where as this default is currently not configurable.
@alexandrebelloni
Copy link

Can't you simply change the value in /proc/sys/net/unix/max_dgram_qlen?

@sbesse-nam
Copy link
Author

I changed the value before creating a socket and observed the same issue (failed sending with -EAGAIN). It doesn't seem to immediately propagate and may need to be done at some earlier point in the boot process (before normal applications are running perhaps). Regardless of it is possible to actually change it during runtime, the default value of 10 is very small. As far as I understand, changing this value doesn't change the memory allocated to the socket, so I don't see a reason why the default shouldn't be a higher value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants