TimeOut

Giganews Newsgroups
Subject: TimeOut
Posted by:  Mark Williams (mark@{removethis}skwirel.com)
Date: Wed, 24 Jun 2009

I have a problem with time outs on TIDHttp (the basic problem is that I
probably do not understand what I am doing!).

I create a TIDHTTP object and return it as the result of a function.

Result:=TIDHTTP.create(Nil);
Result.IOHandler.ReadTimeout:=timeOut;

timeout has a default of 15000.

Each time I run this it bums out and I assume I am doing something
fundamentally wrong.

What I would like to happen is that after 15 seconds if a connection is not
established then my post, get etc functions will terminate.

How do I go about this correctly in Indy?

Also, is there some event I should be handling or a particular response code
I should be looking for?

Finally, for SSL I dynamically add an Eldos SSLIOHandler. This has a
connectTimeOut property. Do I just need to set that to 15000 or is there
more to be done or do I contact Eldos?

Thanks

Replies