Carsten Muencheberg wrote:
> Answering my own question:
> void __fastcall TForm1::HttpCli1DocData(TObject *Sender, Pointer Buffer,
>   int Len)
> {
> Sleep(1);
> }
> //------------------------------------------------------------------------
> --- 
> Did the trick, CPU is at 0% now. :-)

Note, that CPU load depends also on your line speed. If you are testing
against a server on LocalHost or in a fast LAN CPU load can be much higher
than running on a real world Internet connection. 
Sleep() isn't recommended, instead use HTTPCli's built-in bandwidthcontroller
if you think you must throttle CPU load. 
BTW: Don't trust Taskmanager too much.

Arno Garrels [TeamICS]
To unsubscribe or change your settings for TWSocket mailing list
please goto
Visit our website at

Reply via email to