cURL / Mailing Lists / curl-library / Single Mail

curl-library

Multi interface: mis-match in number of requests sent to number of responses received

From: nikhil ap <niks3089_at_gmail.com>
Date: Mon, 6 Oct 2014 16:00:59 +0530

I am using multi interface to send 1000's of GET requests and process the
responses.

In certain cases I am seeing a mismatch in requests sent to responses
received.

For example, 200 requests are sent but only 195 responses are processed
even though 200 OK responses are received by the client.
I used wireshark to confirm that all requests are getting responses.

Which means curl_multi_info_read() is handing over only 195 responses.
This is not a right behavior. Any idea as to why this could happen?

In certain other cases, after 200OK is processed but curl is immediately
sending reset.
I would also like to know why.

Is there a way to see what happens behind the scene? Like enable logging so
that I can see info level and error logs generated by libcurl

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