Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
base system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Dec 2010 at 07:27 UTC
Updated:
29 Oct 2011 at 07:21 UTC
Jump to comment: Most recent
Comments
Comment #2
tr commenteddrupal_http_request.patch queued for re-testing.
Comment #4
mikeytown2 commentedThe documentation says that you shouldn't use 'unread_bytes' in stream_get_meta_data(). I was looking at a way to get around this and there is no good way to do it. Coming from #1320222: Bring in other drupal patches if your wondering.
Comment #5
catchI think this is probably not worth worrying about. The performance issue I was debugging turned out to be the openid math library used at the other side of the connection.
Comment #6
mikeytown2 commentedThinking about this, if chunked transfer encoding is used then you can detect that the stream is done because the last chunk is a zero-length chunk http://en.wikipedia.org/wiki/Chunked_transfer_encoding#Format; Once you see a chunk size of 0 close the connection. One could also close the connection after the Content-Length has been hit.
#106506: drupal_http_request() does not handle 'chunked' responses - Make it support HTTP 1.1