Question

I'm facing a strange issue with our new c++ wrapper over libcurl 7.33 (compiled with enable-ares, RHEL5.4). The performance is good(in msecs) when I hit http://posttestserver.com/post.php with easy interface but with multi interface dns resolving takes more time for the same url. If the libcurl callback timer timeout is used instead of our own timer logic, the request takes 2 minutes to complete. Timeout suggestion from libcurl increases like 4000, 150000..This does not happen if IP is used.

Was it helpful?

Solution

This could be due to a timeout bug present in 7.33.0. There's a newer libcurl version out that you could use to see if it the bug remains or not.

It would also help if you would provide a smallish example source code here that shows how you do this so that we can see that the code is correct from your end. Or tell us if you can use one of the existing libcurl examples on the curl site to repeat the problem.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top