1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib/webrick
normal 29a914ff2e lib/webrick/utils.rb: simplify by avoiding fcntl
IO#nonblock= and IO#close_on_exec= methods are simpler-to-use
and potentially more portable to for future OSes.
IO#nonblock= and IO#close_on_exec= are also smart enough to avoid
redundantly setting flags so a syscall may be avoided.

These methods could probably be removed entirely and inlined, but
it's unclear if there is 3rd-party code which relies on them.

* lib/webrick/utils.rb (set_non_blocking): use IO#nonblock=
* (set_close_on_exec): use IO#close_on_exec=
  [Feature #11136]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-05-17 08:22:11 +00:00
..
httpauth
httpservlet * lib/webrick/httpproxy.rb: remvoe useless assigned variables. 2014-06-26 09:05:58 +00:00
accesslog.rb * ext/win32ole/sample/olegen.rb: Fix typo 2013-12-11 03:58:07 +00:00
cgi.rb
compat.rb * lib/webrick/compat.rb, lib/xmlrpc/datetime.rb: [DOC] fix typo by @vipulnsward [fix GH-464] 2013-12-06 02:10:11 +00:00
config.rb
cookie.rb
htmlutils.rb
httpauth.rb
httpproxy.rb * lib/webrick/httpproxy.rb: remove needless condition 2014-08-08 05:34:48 +00:00
httprequest.rb normalize reference to Timeout::Error 2014-10-07 20:00:09 +00:00
httpresponse.rb * lib/gserver.rb: remove redundant use of to_s in interpolation. 2014-06-24 08:48:46 +00:00
https.rb
httpserver.rb stdlib: use IO#wait_*able instead of IO.select when possible 2015-05-06 20:30:43 +00:00
httpservlet.rb
httpstatus.rb * lib/webrick/httpstatus.rb: require webrick/accesslog for AccessLog. 2014-11-09 13:29:08 +00:00
httputils.rb
httpversion.rb
log.rb
server.rb lib/webrick/server.rb: avoid redundant fcntl call 2015-05-17 05:59:08 +00:00
ssl.rb * lib/webrick/utils.rb: removed unused argument variable. 2015-01-02 06:53:12 +00:00
utils.rb lib/webrick/utils.rb: simplify by avoiding fcntl 2015-05-17 08:22:11 +00:00
version.rb