[prev in list] [next in list] [prev in thread] [next in thread] 

List:       squid-dev
Subject:    Re: Where to do Transfer-Encoding?
From:       Henrik Nordstrom <hno () squid-cache ! org>
Date:       2003-10-28 0:13:57
Message-ID: Pine.LNX.4.44.0310280109020.11852-100000 () localhost ! localdomain
[Download RAW message or body]

On 27 Oct 2003, Gonzalo Arana wrote:

> Is clientReplyContext::sendMoreData a good place to do actual encodings
> of data ([de]chunk/deflate)?

Depends..

dechunk is best done in http.cc while reading the reply, feeding it in 
canonical form to the rest of Squid.

chunking is best done just prior to sending the content out to the client.

Note: both operations requires the headers to be modified to reflect the 
content.


it can be debated what to do about gzip/compress/deflate encodings. 
Semantically TE is always applied hop-by-hop, but if we receive the 
content compressed we might want to forward it as is without having to 
redo the compression.

Regards
Henrik


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic