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
@ -255,7 +255,6 @@ module WEBrick
|
|||||||
sock = nil
|
sock = nil
|
||||||
begin
|
begin
|
||||||
sock = svr.accept
|
sock = svr.accept
|
||||||
sock.sync = true
|
|
||||||
Utils::set_non_blocking(sock)
|
Utils::set_non_blocking(sock)
|
||||||
rescue Errno::ECONNRESET, Errno::ECONNABORTED,
|
rescue Errno::ECONNRESET, Errno::ECONNABORTED,
|
||||||
Errno::EPROTO, Errno::EINVAL
|
Errno::EPROTO, Errno::EINVAL
|
||||||
|
Loading…
x
Reference in New Issue
Block a user