cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

Re: re-using connection with authentication

From: Daniel Stenberg <daniel_at_haxx.se>
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: http://haxx.se/curl.html
Received on 2007-03-23

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET