|
@@ 382-385 (lines=4) @@
|
| 379 |
|
$easy->sink = Psr7\stream_for($conf[CURLOPT_FILE]); |
| 380 |
|
} |
| 381 |
|
$timeoutRequiresNoSignal = false; |
| 382 |
|
if (isset($options['timeout'])) { |
| 383 |
|
$timeoutRequiresNoSignal |= $options['timeout'] < 1; |
| 384 |
|
$conf[CURLOPT_TIMEOUT_MS] = $options['timeout'] * 1000; |
| 385 |
|
} |
| 386 |
|
|
| 387 |
|
// CURL default value is CURL_IPRESOLVE_WHATEVER |
| 388 |
|
if (isset($options['force_ip_resolve'])) { |
|
@@ 396-399 (lines=4) @@
|
| 393 |
|
} |
| 394 |
|
} |
| 395 |
|
|
| 396 |
|
if (isset($options['connect_timeout'])) { |
| 397 |
|
$timeoutRequiresNoSignal |= $options['connect_timeout'] < 1; |
| 398 |
|
$conf[CURLOPT_CONNECTTIMEOUT_MS] = $options['connect_timeout'] * 1000; |
| 399 |
|
} |
| 400 |
|
|
| 401 |
|
if ($timeoutRequiresNoSignal && strtoupper(substr(PHP_OS, 0, 3)) !== 'WIN') { |
| 402 |
|
$conf[CURLOPT_NOSIGNAL] = true; |