summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-02 04:13:33 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-02 04:13:33 +0000
commit1d23123c46caafa039343a1da0b5e8fb25f49f93 (patch)
tree477440b16d20d1d9e9e375f3299bdf408717d226 /lib
parent7dc77be29960a965363a55d33feb537bf55aee7e (diff)
* 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
Diffstat (limited to 'lib')
-rw-r--r--lib/gserver.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/gserver.rb b/lib/gserver.rb
index f6f37d3a895..8eac2a2fed3 100644
--- a/lib/gserver.rb
+++ b/lib/gserver.rb
@@ -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)