mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
webrick: avoid unnecessary IO#sync= call
Sockets and pipes are always created with FMODE_SYNC flag already set (otherwise many things would be broken). * lib/webrick/server.rb (accept_client): remove unnecessary IO#sync= call git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5b3d137b1f
commit
0d2ab887f3
1 changed files with 0 additions and 1 deletions
|
@ -255,7 +255,6 @@ module WEBrick
|
|||
sock = nil
|
||||
begin
|
||||
sock = svr.accept
|
||||
sock.sync = true
|
||||
Utils::set_non_blocking(sock)
|
||||
rescue Errno::ECONNRESET, Errno::ECONNABORTED,
|
||||
Errno::EPROTO, Errno::EINVAL
|
||||
|
|
Loading…
Reference in a new issue