Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is default timeout values for THTTPRIO

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.

like image 921
serge Avatar asked Feb 23 '26 20:02

serge


1 Answers

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.

like image 110
Chris Thornton Avatar answered Feb 26 '26 02:02

Chris Thornton



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!