Setting timeout for connection/read for IdHttp

Giganews Newsgroups
Subject: Setting timeout for connection/read for IdHttp
Posted by:  Caleb (no…@hotmail.com)
Date: Mon, 2 Aug 2004

Hey,

How can I set the connect/data read timeouts for IdHttp?

I've tried using Http.Socket.ReadTimeout and Http.Socket.ConnectTimeout but
I get an Access Violation because IdHTTP needs an IOHandler for this...

So the question is.. why do I need an IOHandler for this? And why can't I
set these values directly on the http'd socket ?

Thanks!

Replies