Re: server down error status.

"Tanmay Patwardhan" <[email protected]>
Newsgroups gmane.comp.lib.libwww
Message-ID <[email protected]>
I did set a timeout, but it doesnt seem to affect anything. My program still 
goes into an infinite loop in HTEventList_loop(request);

I also do have a handler defined as indicated by Richard, but that too 
doesnt get called in this case. Does libwww terminate gracefully on not 
finding a webserver, or is this a bug ?

Thanks,
Tanmay


-----------------------
Tanmay Patwardhan
Applications Developer,
UBS Warburg,
Chicago, IL.
-----------------------





>From: Timothee Besset <[email protected]>
>To: [email protected]
>Subject: Re: server down error status.
>Date: Fri, 24 Jan 2003 22:45:30 +0100
>
>
>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" <[email protected]> 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
> >
> >


_________________________________________________________________
Add photos to your e-mail with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.