curll_handle = Скручивание INIT()завиток REQ1 и rea2 же завиток ручка для CURLOPT_CONNECTTIMEOUT + CURLOPT_TIMEOUT выпуска ....
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 20)
curl_easy_setopt(curl, CURLOPT_TIMEOUT, 30);
Request1: (curll_handle)
Curl_easy_perform(curll_handle)
For connection = 20 secs
Chal response request = 30 secs
request2: такие же, как ручка используется выше
curl_slist_append(headers, "Connection: Close");
Curl_easy_perform(curll_handle)
Вопросы:
Request 1:
will it use both timeouts(connection and response timeouts) for curl perform?
what is the total time will take? as per my understand 30 secs(CURLOPT_CONNECTTIMEOUT + CURLOPT_TIMEOUT)
Request 2:
if we use same request1 curl handle for request2. is it(req2) curl_easy_perform() will d0 both connection and response sequence requestS?
what the timeout value use for sencond request if use same req1 curl handle?
Привет, Поскольку запрос-2 использует постоянное соединение с запросом-1, действительно ли имеет значение CURLOPT_CONNECTTIMEOUT в запросе-2? –
Правильно, я поменял свой ответ, чтобы включить эту деталь! –