cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: timeout on a site

From: Shlomit Lisser <shlomit_at_gosms.com>
Date: Mon, 22 Jan 2001 10:16:56 +0200

Hi!

I'm using Win32. That's mean that I can't set a timeout on curl? In case the
site doesn't exist the curl will hang forever?

Shlomit.

At 10:09 21/01/01 -0800, you wrote:
>Shlomit Lisser wrote:
> >
> > This might be an old solved problem, but going through the mailing lists
> > didn't get me anywhere.
> > I would like to know if the -m option works?
>
>Are you on Win32 or unix? If unix, which one? Basically, the way curl
>sets a timeout is to use your systems alarm() function (see 'man alarm')
>to send itself a SIGALRM after the specified number of secs; on Win32
>it's non-op, and perhaps on your unix it's not working?
>
>-te
>
>--
>Troy Engel :: KeyID DF3D5207
>Perl is just another tool in the Unix toolbox. Perl does one thing,
>and it does it well: it gets out of your face. - Larry Wall
Received on 2001-01-22