ruby-changes:34517
From: akr <ko1@a...>
Date: Sat, 28 Jun 2014 15:33:51 +0900 (JST)
Subject: [ruby-changes:34517] akr:r46598 (trunk): * lib/webrick/utils.rb (create_listeners): Close socket objects.
akr 2014-06-28 15:33:44 +0900 (Sat, 28 Jun 2014) New Revision: 46598 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=46598 Log: * lib/webrick/utils.rb (create_listeners): Close socket objects. Modified files: trunk/ChangeLog trunk/lib/webrick/utils.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 46597) +++ ChangeLog (revision 46598) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat Jun 28 15:32:57 2014 Tanaka Akira <akr@f...> + + * lib/webrick/utils.rb (create_listeners): Close socket objects. + Sat Jun 28 13:58:48 2014 Nobuyoshi Nakada <nobu@r...> * eval.c (setup_exception): should not overwrite SystemStackError Index: lib/webrick/utils.rb =================================================================== --- lib/webrick/utils.rb (revision 46597) +++ lib/webrick/utils.rb (revision 46598) @@ -70,7 +70,9 @@ module WEBrick https://github.com/ruby/ruby/blob/trunk/lib/webrick/utils.rb#L70 sockets = Socket.tcp_server_sockets(address, port) sockets = sockets.map {|s| s.autoclose = false - TCPServer.for_fd(s.fileno) + ts = TCPServer.for_fd(s.fileno) + s.close + ts } return sockets end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/