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

ruby-changes:23155

From: naruse <ko1@a...>
Date: Sun, 1 Apr 2012 23:06:53 +0900 (JST)
Subject: [ruby-changes:23155] naruse:r35206 (trunk): Client waits only the first line.

naruse	2012-04-01 23:06:42 +0900 (Sun, 01 Apr 2012)

  New Revision: 35206

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

  Log:
    Client waits only the first line.

  Modified files:
    trunk/test/net/ftp/test_ftp.rb

Index: test/net/ftp/test_ftp.rb
===================================================================
--- test/net/ftp/test_ftp.rb	(revision 35205)
+++ test/net/ftp/test_ftp.rb	(revision 35206)
@@ -263,7 +263,7 @@
       sock.print("150 Here comes the directory listing.\r\n")
       conn = TCPSocket.new(host, port)
       list_lines.each_with_index do |l, i|
-        if i == 1
+        if i == 0
           sleep(0.3)
         else
           sleep(0.1)

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

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