On Thu, 13 Mar 2003, Alexander V. Lukyanov wrote: > On Tue, Mar 11, 2003 at 03:00:50PM +0100, Piotr Krukowiecki wrote: > > Sometimes when uploading files lftp stops on e.g > > > > `file' at 244808534 (100%) [Waiting for transfer to complete] > > > > and it waits and waits and waits and nothing happens. > > net:timeout is set to 120s but that doesn't help. So i suppose i > > want net:timeout to have influence on this as well. > > Attached is the patch to fix it. Originally this was timeout-less, > because the data buffered on socket (e.g. 40k) could be transferred > very slowly (e.g. 10 bytes a second) and the progress cannot be seen > by lftp.
Thanks! Seems it's working (but haven't tested it very well) But the "REST complete file" problem seems to be not fixed for all cases. Please see debug log: ---- Resolving host address... ---- 1 address found [24191] SERVER ---- Connecting to SERVER (SERVER) port 19 [24191] SERVER <--- 220-serv [24191] SERVER <--- 220 Please enter your name: [24191] SERVER ---> USER USER [24191] SERVER <--- 331 User name okay, Need password. [24191] SERVER ---> PASS XXXX [24191] SERVER <--- 230 User logged in. [24191] SERVER ---> PWD [24191] SERVER <--- 257 "/" is current directory. [24191] SERVER ---> PASV [24191] SERVER <--- 227 Entering Passive Mode (SERVER,14,226) [24191] SERVER ---- Connecting data socket to (SERVER) port 3810 [24191] SERVER ---> LIST [24191] SERVER <--- 150 Opening ASCII mode data connection for /bin/ls (4387 bytes). [24191] SERVER <--- 226 Transfer successful. [24191] SERVER ---- Closing data socket [24191] SERVER ---> CWD /inuyasha [24191] SERVER <--- 250 "/inuyasha" is current directory. [24191] SERVER ---> TYPE I [24191] SERVER <--- 200 Type set to I. [24191] SERVER ---> PASV [24191] SERVER <--- 227 Entering Passive Mode (SERVER,14,227) [24191] SERVER ---- Connecting data socket to (SERVER) port 3811 [24191] SERVER ---> STOR (Ani-Kraze)InuYasha_101[HQ_SBC]_[22D2F48A].avi [24191] SERVER <--- 150 Opening binary mode data connection for /inuyasha/(Ani-Kraze)InuYasha_101[HQ_SBC]_[22D2F48A].avi. [24191] SERVER **** Connection reset by peer [24191] SERVER ---- Closing data socket [24191] SERVER ---- Closing control socket ---- Resolving host address... ---- 1 address found [24191] SERVER ---- Connecting to SERVER (SERVER) port 19 [24191] SERVER <--- 220-serv [24191] SERVER <--- 220 Please enter your name: [24191] SERVER ---> USER USER [24191] SERVER <--- 331 User name okay, Need password. [24191] SERVER ---> PASS XXXX [24191] SERVER <--- 230 User logged in. [24191] SERVER ---> CWD /inuyasha [24191] SERVER <--- 250 "/inuyasha" is current directory. [24191] SERVER ---> TYPE I [24191] SERVER <--- 200 Type set to I. [24191] SERVER ---> SIZE (Ani-Kraze)InuYasha_101[HQ_SBC]_[22D2F48A].avi [24191] SERVER <--- 213 141974080 [24191] SERVER ---> PASV copy: put rolled back to 141990464, seeking get accordingly [24191] SERVER <--- 227 Entering Passive Mode (SERVER,15,145) [24191] SERVER ---- Connecting data socket to (SERVER) port 3985 [24191] SERVER ---> REST 141974080 [24191] SERVER <--- 350 Restarting at byte offset 141974080. Send RETR to initiate transfer. [24191] SERVER ---> STOR (Ani-Kraze)InuYasha_101[HQ_SBC]_[22D2F48A].avi [24191] SERVER <--- 150 Opening binary mode data connection for /inuyasha/(Ani-Kraze)InuYasha_101[HQ_SBC]_[22D2F48A].avi. [24191] SERVER ---- Closing data socket [24191] SERVER **** Timeout - reconnecting [24191] SERVER ---- Closing control socket ---- Resolving host address... ---- 1 address found [24191] SERVER ---- Connecting to SERVER (SERVER) port 19 [24191] SERVER <--- 220-serv [24191] SERVER <--- 220 Please enter your name: [24191] SERVER ---> USER USER [24191] SERVER <--- 331 User name okay, Need password. [24191] SERVER ---> PASS XXXX [24191] SERVER <--- 230 User logged in. [24191] SERVER ---> CWD /inuyasha [24191] SERVER <--- 250 "/inuyasha" is current directory. [24191] SERVER ---> TYPE I [24191] SERVER <--- 200 Type set to I. [24191] SERVER ---> SIZE (Ani-Kraze)InuYasha_101[HQ_SBC]_[22D2F48A].avi [24191] SERVER <--- 213 219244544 [24191] SERVER ---> PASV [24191] SERVER <--- 227 Entering Passive Mode (SERVER,15,238) [24191] SERVER ---- Connecting data socket to (SERVER) port 4078 [24191] SERVER ---> REST 219244544 [24191] SERVER <--- 350 Restarting at byte offset 219244544. Send RETR to initiate transfer. [24191] SERVER ---> STOR (Ani-Kraze)InuYasha_101[HQ_SBC]_[22D2F48A].avi [24191] SERVER <--- 150 Opening binary mode data connection for /inuyasha/(Ani-Kraze)InuYasha_101[HQ_SBC]_[22D2F48A].avi. [24191] SERVER <--- 226 Transfer complete. 0 bytes in 78 sec. (0.00 Kb/s). [24191] SERVER ---> NOOP [24191] SERVER <--- 200 NOOP command successful. [24191] SERVER <--- 221 Browse Time Exceeded. Auto banned for 5 minutes. [24191] SERVER **** remote end closed connection [24191] SERVER ---- Closing data socket [24191] SERVER ---- Closing control socket [24191] SERVER ---- Connecting to SERVER (SERVER) port 19 [24191] SERVER <--- 220-serv [24191] SERVER <--- 220 Please enter your name: [24191] SERVER ---> USER USER [24191] SERVER <--- 331 User name okay, Need password. [24191] SERVER ---> PASS XXXX [24191] SERVER <--- 230 User logged in. [24191] SERVER ---> CWD /inuyasha [24191] SERVER <--- 250 "/inuyasha" is current directory. [24191] SERVER ---> TYPE I [24191] SERVER <--- 200 Type set to I. [24191] SERVER ---> PASV [24191] SERVER <--- 227 Entering Passive Mode (SERVER,15,249) [24191] SERVER ---- Connecting data socket to (SERVER) port 4089 [24191] SERVER ---> REST 219244544 [24191] SERVER <--- 350 Restarting at byte offset 219244544. Send RETR to initiate transfer. [24191] SERVER ---> STOR (Ani-Kraze)InuYasha_101[HQ_SBC]_[22D2F48A].avi [24191] SERVER <--- 150 Opening binary mode data connection for /inuyasha/(Ani-Kraze)InuYasha_101[HQ_SBC]_[22D2F48A].avi. [24191] SERVER <--- 226 Transfer complete. 0 bytes in 77 sec. (0.00 Kb/s). [24191] SERVER ---> NOOP [24191] SERVER <--- 200 NOOP command successful. [24191] SERVER <--- 221 Browse Time Exceeded. Auto banned for 5 minutes. [24191] SERVER **** remote end closed connection [24191] SERVER ---- Closing data socket [24191] SERVER ---- Closing control socket [24191] SERVER ---- Connecting to SERVER (SERVER) port 19 [24191] SERVER <--- 220-serv [24191] SERVER <--- 220 Please enter your name: [24191] SERVER ---> USER USER [24191] SERVER <--- 331 User name okay, Need password. [24191] SERVER ---> PASS XXXX [24191] SERVER <--- 230 User logged in. [24191] SERVER ---> CWD /inuyasha [24191] SERVER <--- 250 "/inuyasha" is current directory. [24191] SERVER ---> TYPE I [24191] SERVER <--- 200 Type set to I. [24191] SERVER ---> PASV [24191] SERVER <--- 227 Entering Passive Mode (SERVER,15,255) [24191] SERVER ---- Connecting data socket to (SERVER) port 4095 [24191] SERVER ---> REST 219244544 [24191] SERVER <--- 350 Restarting at byte offset 219244544. Send RETR to initiate transfer. [24191] SERVER ---> STOR (Ani-Kraze)InuYasha_101[HQ_SBC]_[22D2F48A].avi [24191] SERVER <--- 150 Opening binary mode data connection for /inuyasha/(Ani-Kraze)InuYasha_101[HQ_SBC]_[22D2F48A].avi. [24191] SERVER <--- 226 Transfer complete. 0 bytes in 77 sec. (0.00 Kb/s). [24191] SERVER ---> NOOP [24191] SERVER <--- 200 NOOP command successful. [24191] SERVER <--- 221 Browse Time Exceeded. Auto banned for 5 minutes. [24191] SERVER **** remote end closed connection [24191] SERVER ---- Closing data socket [24191] SERVER ---- Closing control socket [24191] SERVER ---- Connecting to SERVER (SERVER) port 19 [... repeated till killed ...] -- Piotrek irc: #debian.pl Mors Drosophilis melanogastribus!