|
@@ 388-391 (lines=4) @@
|
| 385 |
|
$easy->sink = Psr7\stream_for($conf[CURLOPT_FILE]); |
| 386 |
|
} |
| 387 |
|
$timeoutRequiresNoSignal = false; |
| 388 |
|
if (isset($options['timeout'])) { |
| 389 |
|
$timeoutRequiresNoSignal |= $options['timeout'] < 1; |
| 390 |
|
$conf[CURLOPT_TIMEOUT_MS] = $options['timeout'] * 1000; |
| 391 |
|
} |
| 392 |
|
|
| 393 |
|
// CURL default value is CURL_IPRESOLVE_WHATEVER |
| 394 |
|
if (isset($options['force_ip_resolve'])) { |
|
@@ 402-405 (lines=4) @@
|
| 399 |
|
} |
| 400 |
|
} |
| 401 |
|
|
| 402 |
|
if (isset($options['connect_timeout'])) { |
| 403 |
|
$timeoutRequiresNoSignal |= $options['connect_timeout'] < 1; |
| 404 |
|
$conf[CURLOPT_CONNECTTIMEOUT_MS] = $options['connect_timeout'] * 1000; |
| 405 |
|
} |
| 406 |
|
|
| 407 |
|
if ($timeoutRequiresNoSignal && strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') { |
| 408 |
|
$conf[CURLOPT_NOSIGNAL] = true; |