cURL / Mailing Lists / curl-library / Single Mail


Re: Question about using multi handle.

From: Stef Bon <>
Date: Fri, 5 Oct 2012 23:40:17 +0200

2012/10/5 Daniel Stenberg <>:
> On Tue, 2 Oct 2012, Stef Bon wrote:
> Please stop the top-posting!!!

I'm sorry. my email prog does this automatic. I'll take this in to account.

>> As you can see the timeout has value 1. This is milliseconds, so very
>> short. Is it normal to do these event direct or is it still normal to add it
>> to the eventloop, and than wait for 1 millisecond?
> The 1 millisecond wait is there to make sure you call
> curl_multi_socket_action() very soon so that libcurl can take care of
> actions that it wants to do now. Adding new handles have that effect and
> then libcurl wants to setup and act on the new handle.

Yes the timeout is 1 millisecond, and it has to be called very soon.
Is it a good idea to call it directly in stead of creating a timer,
since it's a very short period?

List admin:
Received on 2012-10-05