cURL / Mailing Lists / curl-library / Single Mail


Re: re-using connection with authentication

From: Daniel Stenberg <>
Date: Fri, 23 Mar 2007 23:19:13 +0100 (CET)

On Wed, 14 Mar 2007, Sigrid Thijs wrote:

> see attachment. To reproduce this, you should fill in the url and login in
> the main function.

There's one flaw in your code: you don't loop properly when
CURLM_CALL_MULTI_PERFORM is returned from curl_multi_perform(). When I changed
the if() to a while(), I can't see any problems.

And btw, Sleep(100) is not a god substitute for select() or similar.

  Commercial curl and libcurl Technical Support:
Received on 2007-03-23