From c837f4e76bcd7999c4cd19d43fcc8bf0e42656a6 Mon Sep 17 00:00:00 2001 From: normal Date: Thu, 5 Oct 2017 21:53:54 +0000 Subject: 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 --- lib/webrick/server.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/webrick/server.rb b/lib/webrick/server.rb index 2e7654d9bb..00fa3b16db 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 -- cgit v1.2.3