curl / Mailing Lists / curl-library / Single Mail

curl-library

Re: FTP server response time out

From: Ray Satiro via curl-library <curl-library_at_cool.haxx.se>
Date: Tue, 6 Dec 2016 02:54:14 -0500

On 12/5/2016 11:51 PM, Sasikala Raju wrote:
>
> While uploading to FTP we are getting below error. Will
> CURLOPT_FTP_RESPONSE_TIMEOUT
> <http://ncvs.commvault.com/source/s?defs=CURLOPT_FTP_RESPONSE_TIMEOUT&project=win>
> help here ?
>
> Does STOR command takes long time usually ?
>
> 11/23 13:41:47 => Send header, 56 bytes (0x38)
>
> 11/23 13:41:47 0000: STOR
> sendLogFiles_FC9F9_2016_11_23_12_42_34_1676317.7z
>
> 11/23 14:11:48 == cURL Info: server response timeout
>
> 11/23 14:11:48 == cURL Info: Closing connection 1
>

That's not enough trace output to answer your question. libcurl uses a
default timeout for FTP of 30 minutes for the pingpong [1][2] and I
think but can't find at the moment that it's only if you don't have a
timeout set via CURLOPT_TIMEOUT* or CURLOPT_FTP_RESPONSE_TIMEOUT. Based
on your log timestamps I'll guess it is the default timeout. Are you
using passive mode? Also could this be related to your other issue that
may have to do with large files?

[1]: https://github.com/curl/curl/blob/curl-7_51_0/lib/ftp.c#L3211
[2]: https://github.com/curl/curl/blob/curl-7_51_0/lib/urldata.h#L80

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-12-06