[wp-trac] [WordPress Trac] #26726: Limiting response size doesn't work when streaming a file with cURL

WordPress Trac noreply at wordpress.org
Fri Dec 27 05:18:04 UTC 2013


#26726: Limiting response size doesn't work when streaming a file with cURL
--------------------------+-----------------------------
 Reporter:  bradyvercher  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  HTTP          |    Version:  3.6
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 The functionality for limiting the response size from an HTTP request was
 introduced in #23472

 However, it doesn't work when `stream` is set to true and cURL is the
 transport. I've attached a plugin that'll try to limit the response to
 32KB and stream an MP3 to a temporary file. Currently, it downloads the
 whole file

 The attached patch should fix the behavior when using cURL, but I haven't
 tested the other transports.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/26726>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list