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

netdev_file_ioctl: Fix fcntl F_SETFL O_NONBLOCK regression #5933

Merged
merged 1 commit into from Apr 1, 2022

Conversation

yamt
Copy link
Contributor

@yamt yamt commented Apr 1, 2022

Summary

This fixes a regression caused by the following commit,
which prevents the file flag from being updated.

commit 28860b5242dd5efd86b5da8a089e5d898cd8a9a1
Author: chao.an <anchao@xiaomi.com>
Date:   Sat Mar 19 14:47:37 2022 +0800

    net/netdev: fix switch case missing break

    Signed-off-by: chao.an <anchao@xiaomi.com>

Note: some applications like mbedtls uses F_GETFL to confirm
the nonblock-ness of the socket. This is critical for such
applications.

Impact

Testing

tested with my app using mbedtls on sim/linux.

This fixes a regression caused by the following commit,
which prevents the file flag from being updated.

```
commit 28860b5
Author: chao.an <anchao@xiaomi.com>
Date:   Sat Mar 19 14:47:37 2022 +0800

    net/netdev: fix switch case missing break

    Signed-off-by: chao.an <anchao@xiaomi.com>
```

Note: some applications like mbedtls uses F_GETFL to confirm
the nonblock-ness of the socket. This is critical for such
applications.
@xiaoxiang781216 xiaoxiang781216 merged commit bc0ca51 into apache:master Apr 1, 2022
@jerpelea jerpelea added this to To-Add in Release Notes - 11.0.0 Aug 30, 2022
@jerpelea jerpelea moved this from To-Add to Added in Release Notes - 11.0.0 Sep 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Development

Successfully merging this pull request may close these issues.

None yet

3 participants