FluentFTP: Getting timeout at end of downloading big file

FTP Server Type: Apache FtpServer

Client Computer OS: Ubuntu

FluentFTP Version: 42.*

Framework: .NET 6 Hello, me again.

I got another ftp problem, once the big file (800MB) downloaded, the program stopped responding (got hang for days), because it is waiting for the response of DOWNLOAD command.

Logs :


Response: 230 User logged in, proceed.
Command: FEAT
Status: Waiting for response to: FEAT
Response: 211-Extensions supported
Response: SIZE
Response: MDTM
Response: REST STREAM
Response: LANG en;zh-tw;ja;is
Response: MLST Size;Modify;Type;Perm
Response: AUTH SSL
Response: AUTH TLS
Response: MODE Z
Response: UTF8
Response: TVFS
Response: MD5
Response: MMD5
Response: MFMT
Response: 211 End
Status: Text encoding: System.Text.UTF8Encoding+UTF8EncodingSealed
Command: OPTS UTF8 ON
Status: Waiting for response to: OPTS UTF8 ON
Response: 200 Command OPTS okay.
Command: SYST
Status: Waiting for response to: SYST
Response: 215 UNIX Type: Apache FtpServer
Status: Listing parser set to: Machine
Command: PWD
Status: Waiting for response to: PWD
Response: 257 "/" is current directory.
> GetFileSize("***/****.txt.gz", -1)
Command: SIZE ***/****.txt.gz
Status: Waiting for response to: SIZE ***/****.txt.gz
Response: 502
> GetModifiedTime("***/****.txt.gz")
Command: MDTM ***/****.txt.gz
Status: Waiting for response to: MDTM ***/****.txt.gz
Response: 213 20221124162249.000
File size: -1.0 bytes, last modified: 11/24/2022 4:22:49 PM
> DownloadFile("/tmp/20221124201940657_****.txt.gz", "***/****.txt.gz", Resume, Retry)
> GetFileSize("***/****.txt.gz", -1)
Command: SIZE ***/****.txt.gz
Status: Waiting for response to: SIZE ***/****.txt.gz
Response: 502
> OpenRead("***/****.txt.gz", Binary, 0, -1)
Command: TYPE I
Status: Waiting for response to: TYPE I
Response: 200 Command TYPE okay.
> OpenPassiveDataStreamAsync(PASV, "RETR ***/****.txt.gz", 0)
Command: PASV
Status: Waiting for response to: PASV
Response: 227 Entering Passive Mode (35,207,2,62,205,53)
Status: Connecting to IP #1= 35.207.2.62:52533
Command: RETR ***/****.txt.gz
Status: Waiting for response to: RETR ***/****.txt.gz
Response: 150 File status okay; about to open data connection.
Status: Downloaded 831871613 bytes
Status: Disposing FtpSocketStream(data connection)
793.3 MB transferred
Status: Waiting for response to: *DOWNLOAD*

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17

Commits related to this issue

Most upvoted comments

using NOOP seems a workaround, I will make more tests later for sure. thanks a lot!