curl-library
Curl opens a socket with fd=0
Date: Wed, 7 Sep 2011 18:54:14 +0000
hi,
I observed that libcurl opens a socket which fd is 0 for connection ...
curl_easy_setopt(m_curl, CURLOPT_SOCKOPTFUNCTION, doSetSocketOption);
curl_easy_setopt(m_curl, CURLOPT_SOCKOPTDATA, this);
int HttpClientTransfer::doSetSocketOption(void* userp, curl_socket_t curlfd, curlsocktype purpose)
{
hcmDebug("Socket %d opened for connection\n", curlfd);
return 0;
}
and the log shows
<13:52:55.356 DBG HCM 1556:1564 0:0>[setSocketOption(HttpClientTransfer.cpp:683)] Socket 0 opened for connection
what causes this problem there in curl?
thanks,
yamin
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2011-09-07