|
@@ 169-172 (lines=4) @@
|
| 166 |
|
|
| 167 |
|
$curl_errno = curl_errno($this->handle); |
| 168 |
|
|
| 169 |
|
if ($curl_errno === 23 && $this->response_byte_limit && $this->response_byte_limit === $this->response_bytes) { |
| 170 |
|
// CURLE_WRITE_ERROR - Not actually an error in this case. We've drained as much data from the request that we want. |
| 171 |
|
$curl_errno = false; |
| 172 |
|
} |
| 173 |
|
|
| 174 |
|
if ($curl_errno === 23 || $curl_errno === 61) { |
| 175 |
|
// Reset encoding and try again |
|
@@ 424-427 (lines=4) @@
|
| 421 |
|
} |
| 422 |
|
|
| 423 |
|
$curl_errno = curl_errno($this->handle); |
| 424 |
|
if ($curl_errno === 23 && $this->response_byte_limit && $this->response_byte_limit === $this->response_bytes) { |
| 425 |
|
// CURLE_WRITE_ERROR - Not actually an error in this case. We've drained as much data from the request that we want. |
| 426 |
|
$curl_errno = false; |
| 427 |
|
} |
| 428 |
|
|
| 429 |
|
if ($curl_errno) { |
| 430 |
|
$error = sprintf( |