cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: retry doesn't work on win32?

From: Lars Nilsson <chamaeleon_at_gmail.com>
Date: Tue, 16 Jan 2007 18:55:09 -0500

On 1/16/07, Daniel Beardsmore <public_at_telcontar.net> wrote:
> Tobias Wendorff wrote:
> >> Doesn't cURL return an error code that you can check on? After you run
> >> cURL, check the error code and then if it failed, sleep() a bit and
> >> retry?
> >
> > sleep() on win32 (WinXP SP2) ??
> I am out of just about every loop, and there are treasures beyond my
> imagination out there, so there has got to be a way to sleep Win32, even
> if all you do is set a timer to wake you up (I know you can do that
> much at least, and for all I know, that's all sleep() is -- a timer in
> the OS).

I usually end up using Sleep() in Windows. Of course, this is not
particularly relevant to the thread-subject (or so I would have
thought anyway, since the discussion didn't start out with how to do
something in C/C++, but rather how to script the behaviour).

Lars Nilsson
Received on 2007-01-17