mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
This saves a system call by allowing us to use SOCK_NONBLOCK in Linux when accept4 is available. Note: I do not agree accept_nonblock should always make accepted sockets non-blocking, and will propose a future API to allow controlling whether accepted sockets are non-blocking or not regardless of how they were created. * ext/socket/init.c (cloexec_accept): support nonblock flag and use SOCK_NONBLOCK if possible * ext/socket/init.c (rsock_s_accept_nonblock): update cloexec_accept call * ext/socket/init.c (accept_blocking): ditto for blocking * test/socket/test_nonblock.rb: check nonblock? on accepted socket [Feature #11138] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50518 b2dd03c8-39d4-4d8f-98ff-823fe69b080e |
||
|---|---|---|
| .. | ||
| test_addrinfo.rb | ||
| test_ancdata.rb | ||
| test_basicsocket.rb | ||
| test_nonblock.rb | ||
| test_socket.rb | ||
| test_sockopt.rb | ||
| test_tcp.rb | ||
| test_udp.rb | ||
| test_unix.rb | ||