cURL / Mailing Lists / curl-library / Single Mail

curl-library

Error CURLE_GOT_NOTHING(52) under http GET load test

From: Gustaf Hui <ghui_at_voicegenie.com>
Date: Thu, 13 Jun 2002 12:57:12 -0400

Hi All,

I am using the multi interface to perform http GET requests through a proxy
(Apache 1.3.24), running on Red Hat 7.2, and I am consistently running into
the same fetch error CURLE_GOT_NOTHING(52). For the last load test I did,
this error happened 4 times out of ~240000 requests, and they seem to occur
randomly with respect to time.

I had CURLOPT_VERBOSE on, and a CURLOPT_DEBUGFUNCTION to do the logging.
The sequence of events go as follow.

First the request is prepared (exactly the same way for all requests) with a
easy handle and added to a multi handle. Then to initiate the request,
curl_multi_perform() is called within a loop,
    while ( CURLM_CALL_MULTI_PERFORM == status )
    {
      status = curl_multi_perform(m_CUrlMultiHandle, &m_nActiveHandle);
    }
and unlike the normal cases, the fetch is completed within this loop. The
logs I get in this loop are:
    2002-06-13 06:37:22.253| Re-using existing connection! (#0)
    2002-06-13 06:37:22.253| Connected to [re-used] (127.0.0.1) port 8080
    2002-06-13 06:37:22.254| Connection #0 left intact
And the easy handle return code is CURLE_GOT_NOTHING.

I have checked the proxy access log, and the proxy doesn't seem to receive
anything for this particular request.

Then on a subsequent request, the logs show:
    2002-06-13 06:37:22.295| Connection 0 seems to be dead!
    2002-06-13 06:37:22.295| Closing connection #0
    2002-06-13 06:37:22.295| About to connect() to 127.0.0.1:8080
    2002-06-13 06:37:22.295| Connected to 127.0.0.1 (127.0.0.1) port 8080
and everything works just fine after this.

I tried to look in the source, but couldn't find out why this is happening.
Not knowledgeable enough, and can't spare too much time =) The workaround I
can think of is to retry the request when this happens, but this is not a
cure. Any idea? Or could I be doing something wrong?

Thank you, for reading this long e-mail.
Gustaf

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink
Received on 2002-06-13