On Tue, 2 Oct 2012, Stef Bon wrote:

Please stop the top-posting!!!

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.

--

 / daniel.haxx.se
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette:  http://curl.haxx.se/mail/etiquette.html

Reply via email to