Hi I know that HTTPRIO does this to set timeouts:
if FConnectTimeout > 0 then
Check(not InternetSetOption(Request, INTERNET_OPTION_CONNECT_TIMEOUT, Pointer(@FConnectTimeout), SizeOf(FConnectTimeout)));
if FSendTimeout > 0 then
Check(not InternetSetOption(Request, INTERNET_OPTION_SEND_TIMEOUT, Pointer(@FSendTimeout), SizeOf(FSendTimeout)));
if FReceiveTimeout > 0 then
Check(not InternetSetOption(Request, INTERNET_OPTION_RECEIVE_TIMEOUT, Pointer(@FReceiveTimeout), SizeOf(FReceiveTimeout)));
But I would like to know what the default values are. I tried to Google it but was unsuccessful.
I think they are set by WinInet, so if it varies from PC to PC, it's because of the version of WinInet, and therefore the version of Internet Explorer that's installed. Setting it in one program should not affect others. i.e. changing the values is good for only the session that you're modifying it for.
We have had to increase the timeouts when sending large XML payloads to a system that takes a long time to return a result. Up to 300 seconds.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With