1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/webrick/utils.rb (create_listeners): Close socket objects.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46598 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2014-06-28 06:33:44 +00:00
parent 1c58954cec
commit 8b76d21f55
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,7 @@
Sat Jun 28 15:32:57 2014 Tanaka Akira <akr@fsij.org>
* lib/webrick/utils.rb (create_listeners): Close socket objects.
Sat Jun 28 13:58:48 2014 Nobuyoshi Nakada <nobu@ruby-lang.org>
* eval.c (setup_exception): should not overwrite SystemStackError

View file

@ -70,7 +70,9 @@ module WEBrick
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