2012/10/5 Daniel Stenberg <[email protected]>: > 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? Stef ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html
