Skip to content

Commit

Permalink
* lib/gserver.rb (GServer#start): fix a timing issue. patch from
Browse files Browse the repository at this point in the history
  Charles Nutter.  [Bug ruby#7081]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39016 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
mame committed Feb 2, 2013
1 parent 7dc77be commit 1d23123
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion lib/gserver.rb
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,8 @@ def start(maxConnections = -1)
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)
Expand Down

0 comments on commit 1d23123

Please sign in to comment.