-
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
Fix hanging dtls handshake if no reply #35712
Fix hanging dtls handshake if no reply #35712
Conversation
a885f0e
to
194c569
Compare
194c569
to
71dda19
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks 👍
@@ -563,9 +563,8 @@ static int dtls_rx(void *ctx, unsigned char *buf, size_t len, | |||
uint32_t dtls_timeout) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add the "Fixes #35541" to the commit body of "net: sockets: tls: check return code from fcntl " commit so it is easier to track what commit fixes what issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
Not checking return code in fcntl can result in interpreting -1 as flags, and cause unexpected behaviour. Fixes zephyrproject-rtos#35541 Signed-off-by: Emil Lindqvist <emil@lindq.gr>
Zephyr sees fnctl as an alias of ioctl, and so the F_GETFL request should be handled here as well. Signed-off-by: Emil Lindqvist <emil@lindq.gr>
71dda19
to
ddcf465
Compare
Fixes #35541