Closed pavelmash closed 3 years ago
My guess is that the correct logic may be
if SendTimeout < ReceiveTimeout then
SendTimeout := ReceiveTimeout;
if SendTimeout <> 0 then // prevent send+receive forever
curl.easy_setopt(fHandle, coTimeoutMs, SendTimeout);
Ok, let it be as you propose max(SendTimeout, ReceiveTimeout)
- I will investigate how it works in productions
set a curl timeout as SendTimeout+ReceiveTimeout - this prevent request to wait forever; use *_TIMEOUT_MS (available in CURL since 2007year)