[ruby-cvs:53399] akr:r46253 (trunk): * lib/webrick/server.rb: Use a pipe to detect server shutdown.

akr at ruby-lang.org akr at ruby-lang.org
Fri May 30 21:32:49 JST 2014


akr	2014-05-30 21:32:48 +0900 (Fri, 30 May 2014)

  New Revision: 46253

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

  Log:
    * lib/webrick/server.rb: Use a pipe to detect server shutdown.
      shutdown() or close() for listening socket is not a reliable.
      Actually, both doesn't work (doesn't wake up select()) on
      DragonFly BSD 3.6.2.
    
    * test/webrick/utils.rb: :ShutdownSocketWithoutClose is not required
      now to immediate server shutdown detection.
      This fixes fd leaks.
    
    * test/net/http/utils.rb: Ditto.

  Modified files:
    trunk/ChangeLog
    trunk/lib/webrick/server.rb
    trunk/test/net/http/utils.rb
    trunk/test/webrick/utils.rb


More information about the ruby-cvs mailing list