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 * lib/webrick/httpauth/digestauth.rb: Fix typo in an error message. 2013-11-29 14:03:26 +00:00
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 * lib/webrick/accesslog.rb: Improved WEBrick documentation. 2013-01-26 01:12:54 +00:00
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 * lib/webrick/accesslog.rb: Improved WEBrick documentation. 2013-01-26 01:12:54 +00:00
cookie.rb * remove trailing spaces. 2013-01-26 02:31:43 +00:00
htmlutils.rb webrick: fix non-ascii escape bugs 2013-05-20 01:40:30 +00:00
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 * lib/webrick/accesslog.rb: Improved WEBrick documentation. 2013-01-26 01:12:54 +00:00
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 webrick: fix non-ascii escape bugs 2013-05-20 01:40:30 +00:00
httpversion.rb * lib/webrick/accesslog.rb: Improved WEBrick documentation. 2013-01-26 01:12:54 +00:00
log.rb * lib/webrick/accesslog.rb: Improved WEBrick documentation. 2013-01-26 01:12:54 +00:00
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 * lib/webrick/accesslog.rb: Improved WEBrick documentation. 2013-01-26 01:12:54 +00:00