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

ruby-changes:20758

From: shyouhei <ko1@a...>
Date: Tue, 2 Aug 2011 07:35:15 +0900 (JST)
Subject: [ruby-changes:20758] shyouhei:r32806 (trunk): * test/net/http/test_http.rb (TestNetHTTP_version_1_1_methods#test_timeout_during_HTTP_session):

shyouhei	2011-08-02 07:35:05 +0900 (Tue, 02 Aug 2011)

  New Revision: 32806

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

  Log:
    * test/net/http/test_http.rb (TestNetHTTP_version_1_1_methods#test_timeout_during_HTTP_session):
      If you connect to localhost, you should listen localhost.
    
    * test/net/http/test_https.rb (TestNetHTTPS#test_timeout_during_SSL_handshake):
      ditto.

  Modified files:
    trunk/ChangeLog
    trunk/test/net/http/test_http.rb
    trunk/test/net/http/test_https.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 32805)
+++ ChangeLog	(revision 32806)
@@ -1,3 +1,11 @@
+Tue Aug  2 07:33:29 2011  URABE Shyouhei  <shyouhei@r...>
+
+	* test/net/http/test_http.rb (TestNetHTTP_version_1_1_methods#test_timeout_during_HTTP_session):
+	  If you connect to localhost, you should listen localhost.
+
+	* test/net/http/test_https.rb (TestNetHTTPS#test_timeout_during_SSL_handshake):
+	  ditto.
+
 Tue Aug  2 06:18:15 2011  Luis Lavena  <luislavena@g...>
 
 	* lib/rubygems/installer.rb (class Gem): Correct path check on Windows
Index: test/net/http/test_http.rb
===================================================================
--- test/net/http/test_http.rb	(revision 32805)
+++ test/net/http/test_http.rb	(revision 32806)
@@ -194,7 +194,7 @@
     bug4246 = "expected the HTTP session to have timed out but have not. c.f. [ruby-core:34203]"
 
     # listen for connections... but deliberately do not complete SSL handshake
-    TCPServer.open(0) {|server|
+    TCPServer.open('localhost', 0) {|server|
       port = server.addr[1]
 
       conn = Net::HTTP.new('localhost', port)
Index: test/net/http/test_https.rb
===================================================================
--- test/net/http/test_https.rb	(revision 32805)
+++ test/net/http/test_https.rb	(revision 32806)
@@ -110,7 +110,7 @@
     bug4246 = "expected the SSL connection to have timed out but have not. [ruby-core:34203]"
 
     # listen for connections... but deliberately do not complete SSL handshake
-    TCPServer.open(0) {|server|
+    TCPServer.open('localhost', 0) {|server|
       port = server.addr[1]
 
       conn = Net::HTTP.new('localhost', port)

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

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