Newsgroups : Borland : borland.public.delphi.internet.winsock : 2005 May : How to set a timeout in the Indy HTTP Client
| Subject: | How to set a timeout in the Indy HTTP Client |
| Posted by: | "Marc Geisinger" (marc.geisinger at-n0spam-itec-services.de) |
| Date: | Thu, 12 May 2005 15:34:02 |
Hi,
I wrote a small application for a customer. This app takes a text file
and sends it to a webserver (jsp). The webserver then stores the sent
data to a database and calls a programm on a database-server that
processes the data. When finished, the jsp sends the resultcode and
resultmessage (that come back from the DB-programm) and sends them as
response to my post operation.
This all works fine. This whole functionallity is still being tested and
while testing the Tomcat was shut down. What happend then was: The
client app had sent the text file to the server. The server passed it to
the DB but before sending the response, the server-application was shut
down. My programm kept waiting for a response and was killed by the user
after 40 minutes.
Is there a way to tell the indy http-component what time it shall wait
for an answer? The component itself does not have any property 'timeout'
or something like this. The only thing i found was the
idConnectionTimeout constant but that doesn't help me neither.
Thanks in advance...
Marc