[前][次][番号順一覧][スレッド一覧]

ruby-changes:48009

From: normal <ko1@a...>
Date: Fri, 6 Oct 2017 06:53:59 +0900 (JST)
Subject: [ruby-changes:48009] normal:r60123 (trunk): webrick: avoid unnecessary IO#sync= call

normal	2017-10-06 06:53:54 +0900 (Fri, 06 Oct 2017)

  New Revision: 60123

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=60123

  Log:
    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

  Modified files:
    trunk/lib/webrick/server.rb
Index: lib/webrick/server.rb
===================================================================
--- lib/webrick/server.rb	(revision 60122)
+++ lib/webrick/server.rb	(revision 60123)
@@ -255,7 +255,6 @@ module WEBrick https://github.com/ruby/ruby/blob/trunk/lib/webrick/server.rb#L255
       sock = nil
       begin
         sock = svr.accept
-        sock.sync = true
         Utils::set_non_blocking(sock)
       rescue Errno::ECONNRESET, Errno::ECONNABORTED,
              Errno::EPROTO, Errno::EINVAL

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]