Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Net::FTP error on WinXP with firewall enabled

4 views
Skip to first unread message

Jonathan Aquino

unread,
Mar 6, 2005, 1:49:35 AM3/6/05
to
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

Jonathan Aquino

unread,
Mar 6, 2005, 3:32:38 AM3/6/05
to
Never mind - the problem seems to have vanished after I tried some
combination of rebooting and reinstalling my virus scanner (Avast).

Hooray!

0 new messages