Net::FTP error on WinXP with firewall enabled

  • Thread starter Jonathan Aquino
  • Start date
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
 
J

Jonathan Aquino

Never mind - the problem seems to have vanished after I tried some
combination of rebooting and reinstalling my virus scanner (Avast).

Hooray!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top