[前][次][番号順一覧][スレッド一覧]

ruby-changes:26964

From: mame <ko1@a...>
Date: Sat, 2 Feb 2013 13:13:46 +0900 (JST)
Subject: [ruby-changes:26964] mame:r39016 (trunk): * lib/gserver.rb (GServer#start): fix a timing issue. patch from

mame	2013-02-02 13:13:33 +0900 (Sat, 02 Feb 2013)

  New Revision: 39016

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39016

  Log:
    * lib/gserver.rb (GServer#start): fix a timing issue.  patch from
      Charles Nutter.  [Bug #7081]

  Modified files:
    trunk/ChangeLog
    trunk/lib/gserver.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 39015)
+++ ChangeLog	(revision 39016)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Feb  2 13:00:11 2013  Yusuke Endoh  <mame@t...>
+
+	* 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@t...>
 
 	* lib/fileutils.rb (copy_entry, wrap_traverse): preserve attributes of
Index: lib/gserver.rb
===================================================================
--- lib/gserver.rb	(revision 39015)
+++ lib/gserver.rb	(revision 39016)
@@ -261,7 +261,8 @@ class GServer https://github.com/ruby/ruby/blob/trunk/lib/gserver.rb#L261
              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)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]