Git Product home page Git Product logo

Comments (3)

wconrad avatar wconrad commented on August 28, 2024

Thank you for trying ftpd, and for the nicely done bug report. I love bug reports with runnable code.

Hypothesis

I suspect this is a network issue. The code raising the exception is here:

def open_active_data_connection
  data_socket = TCPSocket.new(@data_hostname, @data_port)
  ...
end

The server is trying to make a connection back to the client1. That it times out is consistent with a client firewall that is dropping the packets that the server is sending when trying to make the connection.

Experiment

If my hypothesis is correct, then passive mode will work where active mode fails. Can you please try the ls command again, but in passive mode instead of active mode? How to do this depends upon your ftp client. In my client, the command is passive:

ftp> passive
Passive mode: on; fallback to active mode: on.
ftp> ls
227 Entering passive mode (127,0,0,1,182,247)
150 Opening ASCII mode data connection
226 Transfer complete
ftp>

In passive mode, all connections are from the client back to the server.

gem version

Version 0.6.0 is a year old. The current version is 0.17.0. I do not think that the latest version will fix this issue, but you may wish to upgrade anyway: there have been numerous bug fixes and enhancements in the last year.


1That the server can make a connection back to the client is a seriously annoying part of the FTP protocol, and a source of endless trouble.

from ftpd.

bararchy avatar bararchy commented on August 28, 2024

Thanks for the quick answer, as you suspected it was a passive\active issue (damn FTP !!!)
Also after installing the gem from the git another issues with crashes when connection ended was fixed, as all my problems are now gone I will close this issue, thanks for a great gem and a great attitude ;)

from ftpd.

wconrad avatar wconrad commented on August 28, 2024

Outstanding! I love the smell of resolved issues in the morning. Thanks again for using ftpd.

from ftpd.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.