Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.compression > #1418
| From | Sven Köhler <remove-sven.koehler@gmail.com> |
|---|---|
| Newsgroups | comp.compression |
| Subject | Re: multi-member gzip usage |
| Date | 2012-07-11 21:13 +0200 |
| Message-ID | <a661a9F1q4U1@mid.dfncis.de> (permalink) |
| References | <67b51fb3-ef82-4d99-bb96-ab3ed4f1ad7b@googlegroups.com> <eli$1207101519@qz.little-neck.ny.us> |
Am 10.07.2012 21:25, schrieb Eli the Bearded: > In comp.compression, jefflad <jladouceur@gmail.com> wrote: >> For instance would http 1.1 chunk encoding use this ? > > I don't know if it does, but that seems a reasonable use case. No. I think chunked transfer-encoding was invented to solve one essential problem: if you don't know the length of the content in advance (content-length HTTP response header), you cannot know when the HTTP response ends. Prior to to chunked encoding, you had to read till EOF and then throw the HTTP connection away. In order to allow the re-use of the connection, you send the data in chunks, terminating the stream of chunks with a zero length chunk. It's simply another way of encoding an EOF. No content-length header is needed. Also, wikipedia states, that gzip and chunk encoding are at different layers: content-encoding (gzip) and transfer-encoding (chunks): http://en.wikipedia.org/wiki/Chunked_transfer_encoding So first, the data is gzipped, then the gzip data is split into chunks. A HTTP-oriented use-case of multi-member gzip could be the following: If the server wants to perform a flush (i.e. emptying any buffers, making sure any data sent so far successfully arrives at the client), the server could terminate the current member and start a new one. But aren't there other means of flushing? Also, I don't know whether some webservers actually implement flushing of gzip-compressed HTTP connections. Regards, Sven
Back to comp.compression | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
multi-member gzip usage jefflad <jladouceur@gmail.com> - 2012-07-09 16:17 -0700
Re: multi-member gzip usage Eli the Bearded <*@eli.users.panix.com> - 2012-07-10 19:25 +0000
Re: multi-member gzip usage Sven Köhler <remove-sven.koehler@gmail.com> - 2012-07-11 21:13 +0200
Re: multi-member gzip usage Thomas Pornin <pornin@bolet.org> - 2012-07-11 11:06 +0000
csiph-web