W3C home > Mailing lists > Public > www-lib@w3.org > January to March 2003

Re: server down error status.

From: Timothee Besset <ttimo@idsoftware.com>
Date: Fri, 24 Jan 2003 22:45:30 +0100
To: www-lib@w3.org
Message-Id: <20030124224530.3bc6ba80.ttimo@idsoftware.com>

I suppose you need to set a timeout?

        /* Set the timeout for how long we are going to wait for a response */
        HTHost_setEventTimeout(10000);

regards

TTimo

On Fri, 24 Jan 2003 14:45:36 -0600
"Tanmay Patwardhan" <tpthesis@hotmail.com> wrote:

> 
> Hi all,
> 
> I am observing some peculiar behaviour in my program using libwww. When my 
> web server is running, but the URL is not available, I can catch that error 
> through ((HTAnchor_header(HTRequest_anchor(request))==NULL).
> 
> But, when the web server is not running at all, and I try to POST to a URL, 
> then the status returned from status = HTPostAnchor(src, dst, request) is 1 
> and libww goes into the following loop infinitely.
> if (status == YES)
> {
> HTEventList_loop(request);
> }
> 
> Whats the best way to catch this error?
> 
> Thanks and regards,
> Tanmay
> 
> 
> 
> -----------------------
> Tanmay Patwardhan
> Applications Developer,
> UBS Warburg,
> Chicago, IL.
> -----------------------
> 
> 
> 
> 
> _________________________________________________________________
> Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
> http://join.msn.com/?page=features/featuredemail
> 
> 
Received on Friday, 24 January 2003 16:46:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:43 GMT