🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.web
Article #1616

Re: nmhttp - different between timeout and failure

#1616
From: Remy Lebeau (TeamB)
Date: Tue, 02 Nov 2004 00:50
19 lines
1852 bytes
"Steffan Kahn" <s_kahn@yahoo.com> wrote in message
news:4186c8f7@newsgroups.borland.com...

> To get a timeout i set Timeout = 1; Then the exception shows
> ESockError. Then i switch Timeout back to 0 and tried to
> open a webpage which doesn't exist. i also get a ESockError.
> I always get ESockError. So there might be none possibility
> to differentiate between timeout and connection error.

You will just have to manually parse the Exception's Message property to
decide what happened.

Or, you can do as I alreadyy suggested earlier and not use TNMHTTP to begin
with, but instead switch to a different component which gives you more
control over what happens and what is reported to you.


Gambit
Technical Details
Message-ID: <4186d9b2$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <41867801@newsgroups.borland.com> <41867cf2$1@newsgroups.borland.com> <41869b58$1@newsgroups.borland.com> <4186a83f$1@newsgroups.borland.com> <4186b3ec@newsgroups.borland.com> <4186b68f$1@newsgroups.borland.com> <4186c8f7@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: feeec,6dac115b128d7ee0
X-Google-Attributes: gidfeeec,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.web
References: <41867801@newsgroups.borland.com> <41867cf2$1@newsgroups.borland.com> <41869b58$1@newsgroups.borland.com> <4186a83f$1@newsgroups.borland.com> <4186b3ec@newsgroups.borland.com> <4186b68f$1@newsgroups.borland.com> <4186c8f7@newsgroups.borland.com>
Subject: Re: nmhttp - different between timeout and failure
Date: Mon, 1 Nov 2004 16:50:58 -0800
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <4186d9b2$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1099356594 68.69.17.41 (1 Nov 2004 16:49:54 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail