# Net::FTP vs ProFTPD 1.2.9

**URL:** <https://www.ruby-forum.com/t/net-ftp-vs-proftpd-1-2-9/139224>\
**Category:** Ruby\
**Created:** [June 2, 2008, 5:11am UTC](https://www.ruby-forum.com/t/net-ftp-vs-proftpd-1-2-9/139224 "2008-06-02T05:11:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tigris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/db5fbb/32.png) [@tigris](https://www.ruby-forum.com/u/tigris)\
**Post date:** [June 2, 2008, 5:11am UTC](https://www.ruby-forum.com/t/net-ftp-vs-proftpd-1-2-9/139224/1 "2008-06-02T05:11:15Z")

</div>

Hi,

I am having some issues using 1.8.5 and 1.8.6 ruby’s built in Net::FTP  
and the specific 1.2.9 version of ProFTPD. I have tested ProFTPD 1.3.1  
and it works fine, as does all other FTP servers I have tested.

The code is pretty simple.

require ‘net/ftp’  
f = Net::FTP.new  
f.connect ‘ftp.my\_ftp.com’, 21  
f.login ‘xxx’, ‘xxx’  
f.debug\_mode = true  
f.passive = true  
f.list  
f.close

Everything works fine, but the list() command takes anywhere from 10-20  
seconds. Yet logging in from the command line version of ftp and doing  
an “ls” is instant. I have tried both passive and active mode for both  
the command line ftp and the Net::FTP connection above, both modes are  
instant on command line and 10-20 seconds via ruby.

Unfortunately for me, the software I am writing I am hoping can work on  
all FTP servers, the solution of upgrade ProFTPD from 1.2.9 to something  
greater is one I would rather avoid, and given the ftp connection via  
anything other than ruby’s Net::FTP works fine, I am wondering what it  
could be in the ruby code? I have browsed through the net/ftp.rb code  
and nothing jumps out, it all seems pretty straight forward.

When I turn debug on:

put: TYPE A  
get: 200 Type set to A

But then there is a 10-20 second gap between the next comand being put.

Any thoughts are greatly appreciated!

---

<div class="post-metadata">

**Author:** ![tigris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/db5fbb/32.png) [@tigris](https://www.ruby-forum.com/u/tigris)\
**Post date:** [June 5, 2008, 2:44am UTC](https://www.ruby-forum.com/t/net-ftp-vs-proftpd-1-2-9/139224/2 "2008-06-05T02:44:51Z")

</div>

Danial Pearce wrote:

> I am having some issues using 1.8.5 and 1.8.6 ruby’s built in Net::FTP  
> and the specific 1.2.9 version of ProFTPD. I have tested ProFTPD 1.3.1  
> and it works fine, as does all other FTP servers I have tested.

The problem is also existent on 1.3.0 of ProFTP also.

I’m not necissarily after a solution, but anything that I can try would  
be helpful 🙂

regards,  
Danial
