Project

General

Profile

Bug #3769

Implement SOCK_NONBLOCK flag to socket()

Added by Theo Schlossnagle about 6 years ago. Updated about 6 years ago.

Status:
Resolved
Priority:
Normal
Category:
kernel
Start date:
2013-05-13
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:

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.

History

#1

Updated by Keith Wesolowski about 6 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.

#2

Updated by Rich Lowe about 6 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100
  • Tags deleted (needs-triage)

Resolved in a63a4ea

Also available in: Atom PDF