I have windows desktop application in which i am connecting to FTP server, uploading/downloading some files.
i am using CURLSMBS for FTP connection.
On some machines FTP speed is fine, but on some machines which are in different network speed is very very slow.
on machine it take 2 sec to download a file and another machine it takes about 90 sec.
ftp_perform ends with SECONDARY: 0
250 Directory successfully changed.
EPSV
Connect data stream passively
229 Entering Extended Passive Mode (|||50866|).
Trying 173.220.58.107:50866…
TCP_NODELAY set
Connecting to 173.220.58.107 (173.220.58.107) port 50866
connect to 173.220.58.107 port 21 failed: Timed out
Failed to connect to 173.220.58.107 port 21: Timed out
Failed EPSV attempt. Disabling EPSV
PASV
227 Entering Passive Mode (173,220,58,107,243,207).
Trying 173.220.58.107:62415…
TCP_NODELAY set
Connecting to 173.220.58.107 (173.220.58.107) port 62415
Connected to 173.220.58.107 (173.220.58.107) port 21 (#0)
TYPE A
200 Switching to ASCII mode.
NLST