From 0d2ab887f3d6ce30ca726ef57d66ec9164569e1c Mon Sep 17 00:00:00 2001 From: normal Date: Thu, 5 Oct 2017 21:53:54 +0000 Subject: [PATCH] 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