summaryrefslogtreecommitdiff
path: root/lib/webrick/server.rb
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-05 21:53:54 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-05 21:53:54 +0000
commit0d2ab887f3d6ce30ca726ef57d66ec9164569e1c (patch)
tree8dc1bc62a4735a33b672f2f5461aa015c626daa2 /lib/webrick/server.rb
parent5b3d137b1fd9f9f56fa6f17888ab8038906ed760 (diff)
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
Diffstat (limited to 'lib/webrick/server.rb')
-rw-r--r--lib/webrick/server.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/webrick/server.rb b/lib/webrick/server.rb
index 2e7654d..00fa3b1 100644
--- a/lib/webrick/server.rb
+++ b/lib/webrick/server.rb
@@ -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