Re: mod_perl and Transfer-Encoding: chunked

2013-07-03 Thread Joseph Schaefer
Dechunked means it strips out the lines containing metadata about the next block of raw data. The metadata is just the length of the next block of data. Imagine a chunked stream is like having partial content length headers embedded in the data stream. The http filter embedded in httpd takes c

Re: mod_perl and Transfer-Encoding: chunked

2013-07-03 Thread Jeff Trawick
On Wed, Jul 3, 2013 at 4:31 PM, Jim Schueler wrote: > In light of Joe Schaefer's response, I appear to be outgunned. So, if > nothing else, can someone please clarify whether "de-chunked" means > re-assembled? yes, where re-assembled means convert it back to the original data stream without any

Re: mod_perl and Transfer-Encoding: chunked

2013-07-03 Thread Jim Schueler
In light of Joe Schaefer's response, I appear to be outgunned. So, if nothing else, can someone please clarify whether "de-chunked" means re-assembled? -Jim On Wed, 3 Jul 2013, Jim Schueler wrote: Thanks for the prompt response, but this is your question, not mine. I hardly need an RTFM f

Re: mod_perl and Transfer-Encoding: chunked

2013-07-03 Thread Jim Schueler
Thanks for the prompt response, but this is your question, not mine. I hardly need an RTFM for my trouble. I drew my conclusions using a packet sniffer. And as far-fetched as my answer may seem, it's more plausible than your theory that Apache or modperl is decoding a raw socket stream. Th

Re: mod_perl and Transfer-Encoding: chunked

2013-07-03 Thread Joseph Schaefer
When you read from the input filter chain as $r->read does, the http input filter automatically handles the protocol and passes the dechunked data up to the caller. It does not spool the stream at all. You'd have to look at how mod perl implements read to see if it loops its ap_get_brigade call

Re: mod_perl and Transfer-Encoding: chunked

2013-07-03 Thread Bill Moseley
Hi Jim, This is the Transfer-Encoding: chunked I was writing about: http://tools.ietf.org/html/rfc2616#section-3.6.1 On Wed, Jul 3, 2013 at 11:34 AM, Jim Schueler wrote: > I played around with chunking recently in the context of media streaming: > The client is only requesting a "chunk" of da

Re: mod_perl and Transfer-Encoding: chunked

2013-07-03 Thread Jim Schueler
I played around with chunking recently in the context of media streaming: The client is only requesting a "chunk" of data. "Chunking" is how media players perform a "seek". It was originally implemented for FTP transfers: E.g, to transfer a large file in (say 10K) chunks. In the case that y