I'm trying to get my HTTPSend to not wait so long for an answer. It is waiting 12 seconds, and I would like it to wait a user defined number of seconds... preferably only 3 seconds.
Here is my code:
HTTPSender := THTTPSend.Create;
HTTPSender.Timeout := UserTimeoutSettingInSeconds * 1000;
HTTPGetResult := HTTPSender.HTTPMethod('GET', URL);
Regardless of what I set UserTimeoutSettingInSeconds to 1 or 5 or 8, it always waits at least 15 seconds for an answer.
I read this post about v40 from a while back, and I was wondering... what are the correct steps to take, and code to change, to fix this problem to get HTTPSend to obey my user's timeout setting?
http://forum.lazarus.freepascal.org/index.php/topic,32037.msg206126.html#msg206126I'm on Lazarus 1.8.1, FPC 3.0.5, Synapes 40