Hello.

After several tests, I've noticed a problem with the command mirror + squid
when you get the data (server FTP -> local)
In fact, I think that lftp is too fast and proxy have problem's to answer
(with his cache ?).

I've made the same test manually x2 :

In the first, I received the directory after "ls"
-----------------------------------------------------------------------
/usr/local/bin/lftp -d ftp://seb:[EMAIL PROTECTED]
lftp [EMAIL PROTECTED]:~> ls
---- Connecting to proxy sycorax (172.16.10.15) port 3128
+--> CONNECT 172.16.2.2:21 HTTP/1.0
+--> Proxy-Authorization: Basic dG90bzpzZGVu
<--+ HTTP/1.0 200 Connection established
<--+
<--- 220 (vsFTPd 1.2.2)
---> FEAT
<--- 530 Please login with USER and PASS.
---> AUTH TLS
<--- 530 Please login with USER and PASS.
---> USER seb
<--- 331 Please specify the password.
---> PASS seb
<--- 230 Login successful.
---> FEAT
<--- 211-Features:
<---  MDTM
<---  REST STREAM
<---  SIZE
<--- 211 End
---> PWD
<--- 257 "/"
---> PASV
<--- 227 Entering Passive Mode (172,16,2,2,190,0)
---- Connecting data socket to proxy sycorax (172.16.10.15) port 3128
---> LIST
+--> CONNECT 172.16.2.2:48640 HTTP/1.0
+--> Proxy-Authorization: Basic dG90bzpzZGVu
<--+ HTTP/1.0 200 Connection established
<--- 150 Here comes the directory listing.
<--+
<--- 226 Directory send OK.
---- Closing data socket
drwxr-xr-x    3 1006     100          4096 Oct 04 09:16 sa
drwxr-xr-x    3 1006     100          4096 Nov 09 17:19 synerbox
lftp [EMAIL PROTECTED]:/>
-------------------------------------------------------------------------

And in the second (when I try the most faster possible), I didn't receive
the directory 
---------------------------------------------------------------------
 /usr/local/bin/lftp -d ftp://seb:[EMAIL PROTECTED]
lftp [EMAIL PROTECTED]:~> ls
---- Connecting to proxy sycorax (172.16.10.15) port 3128
+--> CONNECT 172.16.2.2:21 HTTP/1.0
+--> Proxy-Authorization: Basic dG90bzpzZGVu
<--+ HTTP/1.0 200 Connection established
<--+
<--- 220 (vsFTPd 1.2.2)
---> FEAT
<--- 530 Please login with USER and PASS.
---> AUTH TLS
<--- 530 Please login with USER and PASS.
---> USER seb
<--- 331 Please specify the password.
---> PASS seb
<--- 230 Login successful.
---> FEAT
<--- 211-Features:
<---  MDTM
<---  REST STREAM
<---  SIZE
<--- 211 End
---> PWD
<--- 257 "/"
---> PASV
<--- 227 Entering Passive Mode (172,16,2,2,132,243)
---- Connecting data socket to proxy sycorax (172.16.10.15) port 3128
---> LIST
+--> CONNECT 172.16.2.2:34035 HTTP/1.0
+--> Proxy-Authorization: Basic dG90bzpzZGVu
<--+ HTTP/1.0 200 Connection established
<--- 150 Here comes the directory listing.
<--- 226 Directory send OK.
<--+
---- Closing data socket
lftp [EMAIL PROTECTED]:/> 
---------------------------------------------------------------


And with a "lftp mirror", the problem comes at 99%



What do you think about it ?
Have you already seen this problem ?

----
Seb



-----Message d'origine-----
De�: Alexander V. Lukyanov [mailto:[EMAIL PROTECTED] 
Envoy�: samedi 13 novembre 2004 22:23
��: S?bastien DAUBIES
Cc�: [EMAIL PROTECTED]
Objet�: Re: problem with hftp and squid

On Fri, Nov 12, 2004 at 12:33:17PM +0100, S?bastien DAUBIES wrote:
> I have a last problem :
> I don't understand if it's possible to connect at proxy http with
> authentification required (user:password) with option "ftp:use-hftp no"
and
> "ftp:proxy http://name:port";
>
> And if it's possible, what command to set ?

Please try this patch. Set ftp:proxy to
http://proxy_user:[EMAIL PROTECTED]:port

--
   Alexander.

Reply via email to