curl-library
cUrl on c and Failed to connect() to host after 1 hours
Date: Tue, 17 Feb 2015 01:56:16 +0100
Hi,
My name is Arnaud and i develop an application.
I upload from Debain 7 with curl 7.40 to windows serveur many full HD
pictures every 5 minutes.
I use filezila server and FTP protocole.
But after 1 hours, cUrl said : "Failed to connect() to host".
Same server, same IP, same config...
If i restart application, it's good... I dont understand.
I search and i dont understand.
My curl conf :
curl_easy_setopt(curl_envoi, CURLOPT_URL,uploadInstruction);
curl_easy_setopt(curl_envoi, CURLOPT_FTP_USE_EPRT, 0);
curl_easy_setopt(curl_envoi, CURLOPT_FTP_USE_EPSV, 1L);
curl_easy_setopt(curl_envoi, CURLOPT_USERNAME,FTPUSER);
curl_easy_setopt(curl_envoi, CURLOPT_PASSWORD,FTPPWD);
curl_easy_setopt(curl_envoi, CURLOPT_FTPPORT, &FTPPORT);
curl_easy_setopt(curl_envoi, CURLOPT_UPLOAD, 1L);
curl_easy_setopt(curl_envoi, CURLOPT_TIMEOUT, 5);
curl_easy_setopt(curl_envoi, CURLOPT_READDATA, fd);
curl_easy_setopt(curl_envoi,
CURLOPT_INFILESIZE_LARGE,(curl_off_t)file_info.st_size);
curl_easy_setopt(curl_envoi ,CURLOPT_NOPROGRESS,1L);
curl_easy_setopt(curl_envoi, CURLOPT_VERBOSE, 0);
res = curl_easy_perform(curl_envoi);
curl_easy_reset(curl_envoi);
curl_easy_cleanup(curl_envoi);
If anyone could help me,
Thx,
-- -- Arnaud TARRY ------------------------ 23 rue de la boucherie 67120 MOLSHEIM Mail : arnaud.tarry_at_gmail.com ------------------------
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-02-17