Actions
Bug #3769
closedImplement SOCK_NONBLOCK flag to socket()
Start date:
2013-05-13
Due date:
% Done:
100%
Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
External Bug:
Description
With the integration of 3666, the socket() implementation treats SOCK_NONBLOCK as a noop. This causes applications to believe the socket returned is in non-blocking more when it is not.
Implement the SOCK_NONBLOCK flag correctly. In addition, implement the SOCK_NDELAY flag to match accept4().
Return failure and set errno to EINVAL if unknown flags are passed in.
Updated by Keith Wesolowski about 10 years ago
A more complete test suite that finds existing problems including the related socketpair issues may be found at https://gist.github.com/wesolows/5572455.
Updated by Rich Lowe about 10 years ago
- Status changed from In Progress to Resolved
- % Done changed from 0 to 100
- Tags deleted (
needs-triage)
Resolved in a63a4ea
Actions