-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
Bug in sockets.c (subsys\net\lib\sockets) #22366
Comments
@bran795 are you planning to send a pull request, since you seem to have a fix proposal in the description? |
@jhedberg Hi, newbie here |
@jhedberg |
@bran795: "Comment", no (well, it won't help). "Commit message", yes. Use |
@pfalcon right |
@bran795 you need to configure your local git correctly, which is normally done through
Since you already created the commit you'll need to amend its author explicitly. You should be able to do that with |
@bran795: Name/email in commit's "Author:" field should match those in "Signed-off-by:" as present in the commit message. In #22366 I see (
which suggests that you submitted that PR from Github's web UI. That won't work here, you would need to use command-line git client, I'm afraid. |
I had no idea that GitHub had such a feature. I wonder if it can be disabled per-project, since it doesn't seem to be able to produce what's required for Zephyr. |
Getting closer... Gitlint issues Identity/Emails issues Please help Thanks |
The zsock_accept_ctx() calls z_reserve_fd() on entry but fails to call z_free_fd() on failure. This will leak the allocated socket descriptor. Fixes zephyrproject-rtos#22366 Signed-off-by: Inbar Anson Bratspiess <inbar.anson.bratspiess@330plus.net>
The zsock_accept_ctx() calls z_reserve_fd() on entry but fails to call z_free_fd() on failure. This will leak the allocated socket descriptor. Fixes #22366 Signed-off-by: Inbar Anson Bratspiess <inbar.anson.bratspiess@330plus.net>
Describe the bug
When zsock_accept_ctx is called on a non-blocking socket, after a few times it returns ENFILE - no more file descriptors available
Call
z_free_fd(fd);
Before returning EAGAIN (line 16 of the function accept)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Accept should return EAGAIN when there is no pending connection on the listening socket
Impact
Showstopper. This bug means non-blocking sockets cannot be used for listening and accepting on the server side.
Screenshots or console output
N/A
Environment (please complete the following information):
Additional context
code snippet:
The text was updated successfully, but these errors were encountered: