aboutsummaryrefslogtreecommitdiffstats
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
commitc837f4e76bcd7999c4cd19d43fcc8bf0e42656a6 (patch)
tree8dc1bc62a4735a33b672f2f5461aa015c626daa2
parentaaf2491c1fa1edc628e468128462788c497b86ba (diff)
downloadruby-c837f4e76bcd7999c4cd19d43fcc8bf0e42656a6.tar.gz
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
-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