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

ruby-changes:34178

From: akr <ko1@a...>
Date: Fri, 30 May 2014 23:28:50 +0900 (JST)
Subject: [ruby-changes:34178] akr:r46259 (trunk): Close sockets.

akr	2014-05-30 23:28:44 +0900 (Fri, 30 May 2014)

  New Revision: 46259

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

  Log:
    Close sockets.

  Modified files:
    trunk/test/xmlrpc/test_cookie.rb
    trunk/test/xmlrpc/test_webrick_server.rb
Index: test/xmlrpc/test_cookie.rb
===================================================================
--- test/xmlrpc/test_cookie.rb	(revision 46258)
+++ test/xmlrpc/test_cookie.rb	(revision 46259)
@@ -79,6 +79,7 @@ class TestCookie < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/xmlrpc/test_cookie.rb#L79
       setup_http_server
       do_test
     ensure
+      @s.http.finish
       stop_server
     end
   end
Index: test/xmlrpc/test_webrick_server.rb
===================================================================
--- test/xmlrpc/test_webrick_server.rb	(revision 46258)
+++ test/xmlrpc/test_webrick_server.rb	(revision 46259)
@@ -75,12 +75,14 @@ class Test_Webrick < Test::Unit::TestCas https://github.com/ruby/ruby/blob/trunk/test/xmlrpc/test_webrick_server.rb#L75
         silent do
           do_test
         end
+        @s.http.finish
         @s = XMLRPC::Client.new3(:host => addr.ip_address, :port => addr.ip_port, :use_ssl => use_ssl)
         @s.user = '01234567890123456789012345678901234567890123456789012345678901234567890123456789'
         @s.password = 'guest'
         silent do
           do_test
         end
+        @s.http.finish
       ensure
         stop_server
       end

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

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