#1 2014-01-10 10:57:21

foncci
Member
Registered: 2013-11-15
Posts: 53

Extending the client timeout

ab,

Only when debugging and expend some time I receive the exception timeout. When can I change that value? I tried with fClient.WinAPI.ConnectTimeout := 5000 but the same, in less than 1 minutes I receive the timeout. What Am I missing? I have the last build.

Regards,

Al

Offline

#2 2014-01-10 13:14:21

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,272
Website

Re: Extending the client timeout

Please read the documentation of the TWinHttpAPI / TWinINet / TWinHTTP classes (either in the SAD pdf, or even easier in the code itself, as comments in the class interface).
This property is for connection timeout, as the name states.

Try to set ReceiveTimeout.

And the value is in milliseconds.
So 5000 ms  = 5 seconds.

Default is 30000 = 30 seconds.
For 1 minute, use 60000.
And so on...

Offline

Board footer

Powered by FluxBB