[wp-trac] [WordPress Trac] #23463: WP_HTTP HTTP/1.1 needs to send Connection Close + support Transfer-encoding better

WordPress Trac noreply at wordpress.org
Wed Feb 13 06:15:45 UTC 2013


#23463: WP_HTTP  HTTP/1.1 needs to send Connection Close + support Transfer-
encoding better
----------------------------+--------------------------
 Reporter:  dd32            |       Type:  defect (bug)
   Status:  new             |   Priority:  normal
Milestone:  Future Release  |  Component:  HTTP
  Version:                  |   Severity:  normal
 Keywords:  has-patch       |
----------------------------+--------------------------
 WP_HTTP accepts a 'httpversion' argument, and supports some functions of
 it (such as Transfer-encoding).

 However, there are 2 things which are rather broken
 1. It doesn't send a `Connection: close` header, so the connection is held
 open and WP_HTTP never returns
 1. Transfer-Encoding: chunked appears to be rather broken, causing it to
 returning the end of the document rather than the decoded document.

 The attached patch goes some of the way towards making that work better,
 but is mostly untested, and could do with a unit test or two.

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


More information about the wp-trac mailing list