- From: Martin Thomson <martin.thomson@gmail.com>
- Date: Wed, 16 Jul 2014 10:44:58 -0700
- To: Poul-Henning Kamp <phk@phk.freebsd.dk>
- Cc: Mark Nottingham <mnot@mnot.net>, HTTP Working Group <ietf-http-wg@w3.org>
On 15 July 2014 23:35, Poul-Henning Kamp <phk@phk.freebsd.dk> wrote: > Once the receiver has received the frame, it's trivial to do a > non-producing pass over it to calculate the uncompressed size, if > this is relevant to know before memory allocation happens. Worst case, that requires a temporary allocation equal to the header table size to do correctly, but I think that's perfectly feasible. That is, if you really, really care about that. You probably don't need to do that in most cases; you can simply perform the accounting as you decompress and detect when you run out of space.
Received on Wednesday, 16 July 2014 17:45:29 UTC