[ruby-cvs:53018] nobu:r45872 (trunk): webrick/httpserver.rb: Stop handling requests on shutdown

nobu at ruby-lang.org nobu at ruby-lang.org
Thu May 8 10:17:07 JST 2014


nobu	2014-05-08 10:17:07 +0900 (Thu, 08 May 2014)

  New Revision: 45872

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

  Log:
    webrick/httpserver.rb: Stop handling requests on shutdown
    
    * lib/webrick/httpserver.rb (WEBrick::HTTPServer#run): stop
      handling requests on shutdown, even if the socket is readable
      and IO.select() returns true.  [Fixes GH-607]
    * lib/webrick/server.rb (WEBrick::GenericServer#start): IO.select()
      raises ENOTSOCK on shutdown on Windows.

  Modified files:
    trunk/ChangeLog
    trunk/lib/webrick/httpserver.rb
    trunk/lib/webrick/server.rb
    trunk/test/webrick/test_httpserver.rb


More information about the ruby-cvs mailing list