зеркало из https://github.com/github/ruby.git
lib/webrick/server.rb: avoid redundant fcntl call
Sockets are close-on-exec by default since Ruby 2.0, so it is redundant to set it again. * lib/webrick/server.rb (accept_client): avoid redundant fcntl call [Feature #11137] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
8ff35b816a
Коммит
ce34a90fb5
|
@ -1,3 +1,8 @@
|
|||
Sun May 17 14:57:42 2015 Eric Wong <e@80x24.org>
|
||||
|
||||
* lib/webrick/server.rb (accept_client): avoid redundant fcntl call
|
||||
[Feature #11137]
|
||||
|
||||
Sun May 17 12:13:33 2015 Eric Wong <e@80x24.org>
|
||||
|
||||
* ext/socket/init.c (cloexec_accept): support nonblock flag and
|
||||
|
|
|
@ -263,7 +263,6 @@ module WEBrick
|
|||
sock = svr.accept
|
||||
sock.sync = true
|
||||
Utils::set_non_blocking(sock)
|
||||
Utils::set_close_on_exec(sock)
|
||||
rescue Errno::ECONNRESET, Errno::ECONNABORTED,
|
||||
Errno::EPROTO, Errno::EINVAL
|
||||
rescue StandardError => ex
|
||||
|
|
Загрузка…
Ссылка в новой задаче