Alexander V. Lukyanov
Sun, 30 Nov 2008 22:42:12 -0800
On Sat, Nov 29, 2008 at 02:57:12PM +0100, Maik Zumstrull wrote: > lftp and the gatling file server don't understand each other with > ftp:sync-mode on. I reported this on the gatling ML first; the author > thinks the problem is likely on lftp's side.
No, it's on the server's side. Correctly implemented ftp servers should work with sync-mode off, as stated by RFC959: "server-FTP processes should queue any commands that arrive while a preceding command is in progress" and RFC1123: "a single READ from the control connection may include more than one FTP command". > lftp :~> debug 5 > lftp :~> open ftp://localhost:2121/ > ---- Resolving host address... > ---- 1 address found: 127.0.0.1 > ---- Connecting to localhost (127.0.0.1) port 2121 > ---> FEAT > <--- 220 Hi there! > <--- 211-Features: > <--- MDTM > <--- REST STREAM > <--- SIZE > <--- 211 End > ---> USER anonymous > ---> PASS lftp@ > ---> PWD > <--- 230 No need for passwords, you're logged in now. * This is the > reply for USER > <--- 230 If you insist... * This is the > reply for PASS > cd `ftp://localhost:2121/' [Waiting for response...] Now lftp waits for reply for PWD command and the server does not send it. So the problem is with the server not sending reply for PWD command. > ---> PWD > <--- 257 "/" In sync mode it does. -- Alexander.