J
Jonathan Aquino
When I try to use Net::FTP (Ruby 1.8.2, WinXP), I get an error. I don't
get the error if I turn off the WinXP firewall. As you can see, passive
mode does not help.
Would someone with WinXP be willing to confirm whether the following
test case gives them an error?
irb(main):001:0> require "net/ftp"
=> true
irb(main):002:0> ftp = Net::FTP.new
=> #<Net::FTP:0x2bc26b8 @resume=false, @mon_entering_queue=[],
@mon_count=0, @debug_mode=false, @mon_owner=nil, @passive=false,
@mon_waiting_queue=[], @binary=true>
irb(main):003:0> ftp.passive=true
=> true
irb(main):004:0> ftp.connect('ftp.ruby-lang.org')
EOFError: End of file reached
from c:/ruby/lib/ruby/1.8/net/ftp.rb:211:in `readline'
from c:/ruby/lib/ruby/1.8/net/ftp.rb:211:in `getline'
from c:/ruby/lib/ruby/1.8/net/ftp.rb:221:in `getmultiline'
from c:/ruby/lib/ruby/1.8/net/ftp.rb:235:in `getresp'
from c:/ruby/lib/ruby/1.8/net/ftp.rb:251:in `voidresp'
from c:/ruby/lib/ruby/1.8/net/ftp.rb:176:in `connect'
from c:/ruby/lib/ruby/1.8/net/ftp.rb:174:in `synchronize'
from c:/ruby/lib/ruby/1.8/net/ftp.rb:174:in `connect'
from (irb):4
get the error if I turn off the WinXP firewall. As you can see, passive
mode does not help.
Would someone with WinXP be willing to confirm whether the following
test case gives them an error?
irb(main):001:0> require "net/ftp"
=> true
irb(main):002:0> ftp = Net::FTP.new
=> #<Net::FTP:0x2bc26b8 @resume=false, @mon_entering_queue=[],
@mon_count=0, @debug_mode=false, @mon_owner=nil, @passive=false,
@mon_waiting_queue=[], @binary=true>
irb(main):003:0> ftp.passive=true
=> true
irb(main):004:0> ftp.connect('ftp.ruby-lang.org')
EOFError: End of file reached
from c:/ruby/lib/ruby/1.8/net/ftp.rb:211:in `readline'
from c:/ruby/lib/ruby/1.8/net/ftp.rb:211:in `getline'
from c:/ruby/lib/ruby/1.8/net/ftp.rb:221:in `getmultiline'
from c:/ruby/lib/ruby/1.8/net/ftp.rb:235:in `getresp'
from c:/ruby/lib/ruby/1.8/net/ftp.rb:251:in `voidresp'
from c:/ruby/lib/ruby/1.8/net/ftp.rb:176:in `connect'
from c:/ruby/lib/ruby/1.8/net/ftp.rb:174:in `synchronize'
from c:/ruby/lib/ruby/1.8/net/ftp.rb:174:in `connect'
from (irb):4