cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: CURLE_OPERATION_TIMEDOUT using curl_multi_socket_action

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 19 Mar 2013 00:06:35 +0100 (CET)

On Sun, 17 Mar 2013, Paras S wrote:

>> 4 - you're using an event-based API so call libcurl when events trigger!

> epoll_calls does just that. It calls PR_QueueJob which in-turn calls
> curl_calls which calls curl_multi_socket_action.

Oh well, then perhaps I'm wrong and you can use that approach...

> By the way, did you happen to go through the other program
> (curl_reuse_issue.cc), which demonstrates that curl tries to create another
> connection even though one has already been established?

Yes, right. You first used the easy interface and then the multi interface so
that behavior was expected. In that case libcurl can't "bring" the connections
from the easy handle into the multi handle.

-- 
  / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html
Received on 2013-03-19