* lib/gserver.rb (GServer#start): fix a timing issue. patch from

Charles Nutter.  [Bug #7081]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2013-02-02 04:13:33 +00:00
parent 7dc77be299
commit 1d23123c46
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Sat Feb 2 13:00:11 2013 Yusuke Endoh <mame@tsg.ne.jp>
* lib/gserver.rb (GServer#start): fix a timing issue. patch from
Charles Nutter. [Bug #7081]
Sat Feb 2 12:36:54 2013 Yusuke Endoh <mame@tsg.ne.jp>
* lib/fileutils.rb (copy_entry, wrap_traverse): preserve attributes of

View File

@ -261,7 +261,8 @@ class GServer
end
}
client = @tcpServer.accept
@connections << Thread.new(client) { |myClient|
Thread.new(client) { |myClient|
@connections << Thread.current
begin
myPort = myClient.peeraddr[1]
serve(myClient) if !@audit or connecting(myClient)