Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 Nov : Can this be done in Delphi ?
| Subject: | Can this be done in Delphi ? |
| Posted by: | "gandalf" (ganda..@haschangedaddress.com) |
| Date: | Mon, 21 Nov 2005 05:11:30 |
Delphi 2005 + MSXML 4.0
I'm using XMLHttp and mostly it works fine. However, from time to time it
gets 'lost' waiting for a response and stays lost for around 3 minutes. This
is not acceptable for the app. So, I want to be able to detect these long
waits and abort the attempt after say 5 seconds (average response time is
60ms) but it ain't easy - I'm stuck and need help or advice as to which
other component to use (Indy also gets lost, more often but for less time)
I've found this in the 'help' files (
ms-help://borland.bds3/xmlsdk/htm/dom_hdi_vb_0rj7.htm ) It claims to be the
VB/C++ solution to this problem. But I don't know if it can be done in
Delphi or if it can how to set about doing it.
The app is simple enough. It just goes off to a site about 5 to 10 times a
second ( ....InfoAction.do?marketId='+MarketID where each time I call it the
MarketID is different ) retrieves the webpage Http and brings it back. No
Posts only Gets. But it does a lot of times so it's reasonable that it
should conk out occasionally but the timeout for this object is not
available without jumping through the hoops as pointed out by our chums at
Microsoft.
Any help or advice would be most welcome right now as it's driving me nuts.
(hence UK post at 5:00AM)