cURL / Mailing Lists / curl-library / Single Mail

curl-library

application gets hanged in curl

From: Manish Pohnekar <manish.pohnekar_at_info-spectrum.com>
Date: Thu, 11 Nov 2010 19:27:01 +0530

Hi

We are using the curl library in c++ libraries

our application is get hanged if the url is unable to load even after the
timeout exceeds aproximake

we are looking for setting such a way the even if the times to load url
exceed the time out our application shoud not hang or gp in infinite loop

we are using the following api in out code do we

Thanks

Find all "CURLOPT_", Subfolders, Keep modified files open, Find Results 1,
"Entire Solution"

cURLHandle.cpp(144): curl_easy_setopt(m_curl, CURLOPT_COOKIEFILE, ""); /*
just to start the cookie engine */

\cURLHandle.cpp(146): curl_easy_setopt(m_curl, CURLOPT_NOSIGNAL, 1); /* to
prevent signal in multi-threaded applications */

cURLHandle.cpp(153): curl_easy_setopt(m_curl, CURLOPT_USERAGENT, pch); /*
some servers don't like requests that are made without a user-agent */

cURLHandle.cpp(155): curl_easy_setopt(m_curl, CURLOPT_HEADER, 0); /* don't
include the header in the body output */

cURLHandle.cpp(156): curl_easy_setopt(m_curl, CURLOPT_URL,pchURL);

\cURLHandle.cpp(164): curl_easy_setopt(m_curl,
CURLOPT_SSL_VERIFYPEER,m_ssl_peeractive);

cURLHandle.cpp(167): curl_easy_setopt(m_curl, CURLOPT_CAINFO,
m_ssl_cabundlepath);

cURLHandle.cpp(176): curl_easy_setopt(m_curl, CURLOPT_SSL_VERIFYPEER,0);

cURLHandle.cpp(181): curl_easy_setopt(m_curl,
CURLOPT_SSL_VERIFYHOST,m_ssl_hostactive);

cURLHandle.cpp(185): curl_easy_setopt(m_curl, CURLOPT_SSL_VERIFYHOST,0);

cURLHandle.cpp(190): curl_easy_setopt(m_curl, CURLOPT_SSL_VERIFYPEER,0);

cURLHandle.cpp(191): curl_easy_setopt(m_curl, CURLOPT_SSL_VERIFYHOST,0);

cURLHandle.cpp(196): curl_easy_setopt(m_curl, CURLOPT_WRITEFUNCTION,
write_cb);

cURLHandle.cpp(197): curl_easy_setopt(m_curl, CURLOPT_WRITEDATA, (void
*)&m_data);

cURLHandle.cpp(206): curl_easy_setopt(m_curl, CURLOPT_CONNECTTIMEOUT,
m_connectiontime);

cURLHandle.cpp(208): curl_easy_setopt(m_curl, CURLOPT_TIMEOUT, m_timeout);

cURLHandle.cpp(211): curl_easy_setopt(m_curl, CURLOPT_TIMEOUT, m_timeout);

cURLHandle.cpp(227): curl_easy_setopt(m_curl, CURLOPT_VERBOSE, bOn ? 1 : 0);

cURLHandle.cpp(228): curl_easy_setopt(m_curl,
CURLOPT_DEBUGFUNCTION,debug_cb);

cURLHandle.cpp(229): curl_easy_setopt(m_curl, CURLOPT_DEBUGDATA,m_log_id);

cURLHandle.cpp(237): curl_easy_setopt(m_curl,
CURLOPT_FOLLOWLOCATION,bOn?1:0);

cURLHandle.cpp(238): curl_easy_setopt(m_curl, CURLOPT_AUTOREFERER, 1); /*
set Referer: on redirect */

cURLHandle.cpp(243): curl_easy_setopt(m_curl, CURLOPT_MAXREDIRS,iMax);

cURLHandle.cpp(445): curl_easy_setopt(m_curl, CURLOPT_UNRESTRICTED_AUTH,1);
/* use same user/password on redirect hosts as well */

cURLHandle.cpp(446): curl_easy_setopt(m_curl, CURLOPT_HTTPAUTH,
CURLAUTH_BASIC); /* extend with CURLAUTH_DIGEST ?? */

cURLHandle.cpp(447):// curl_easy_setopt(m_curl, CURLOPT_HTTPAUTH,
CURLAUTH_ANY);

cURLHandle.cpp(448): curl_easy_setopt(m_curl, CURLOPT_USERPWD, m_user_auth);

cURLHandle.cpp(454): curl_easy_setopt(m_curl,
CURLOPT_PROXYTYPE,CURLPROXY_HTTP); /* cURL default */

cURLHandle.cpp(455): curl_easy_setopt (m_curl, CURLOPT_HTTPPROXYTUNNEL,
(iType == 3));

cURLHandle.cpp(459): curl_easy_setopt(m_curl, CURLOPT_PROXYAUTH,
CURLAUTH_BASIC);

cURLHandle.cpp(461): curl_easy_setopt(m_curl, CURLOPT_PROXYAUTH,
CURLAUTH_ANYSAFE);

cURLHandle.cpp(463): curl_easy_setopt(m_curl, CURLOPT_PROXYAUTH,
CURLAUTH_ANY);

cURLHandle.cpp(472): curl_easy_setopt(m_curl,
CURLOPT_PROXYUSERPWD,m_proxy_auth);

cURLHandle.cpp(480): curl_easy_setopt(m_curl, CURLOPT_PROXYAUTH,
CURLAUTH_BASIC);

cURLHandle.cpp(481):// curl_easy_setopt(m_curl, CURLOPT_PROXYAUTH,
CURLAUTH_ANY);

cURLHandle.cpp(482): curl_easy_setopt(m_curl, CURLOPT_PROXY,pchHost);

cURLHandle.cpp(483): curl_easy_setopt(m_curl, CURLOPT_PROXYPORT,iPort);

cURLHandle.cpp(507): curl_easy_setopt(m_curl, CURLOPT_HTTPHEADER, headers);

Matching lines: 38 Matching files: 1 Total files searched: 24

: 24

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-11-11