[wp-trac] [WordPress Trac] #31172: WP_HTTP_Curl handler fails with limit_response_size when response is larger than specified
WordPress Trac
noreply at wordpress.org
Thu Jan 29 03:46:49 UTC 2015
#31172: WP_HTTP_Curl handler fails with limit_response_size when response is larger
than specified
--------------------------+-----------------
Reporter: dd32 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.2
Component: HTTP API | Version:
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------
It appears that at present the `limit_response_size` parameter is broken
for the cURL transport when it's not streaming the contents to a file (See
#26726 for streaming to file).
It turns out that this isn't covered by any existing Unit Tests.
This was noticed by the WordPress.com team when pingbacks from documents
over 150KB were failing, tracing back to WP_HTTP returning a WP_Error when
`limit_response_size` bytes were recieved.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/31172>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list