Re: force chunked encoding from polipo to client
Juliusz Chroboczek <[email protected]>
| Newsgroups | gmane.comp.web.polipo.user |
|---|---|
| Message-ID | <[email protected]> |
> I have to use a (ill-behaved) client REQUIRING that replies from the
> server should be encoded in chunks.
Gosh.
> I've set up polipo between the client and the server: it ALMOST works:
> replies from the proxy to the client start with chunked encoding, but
> after some packets are received, it seems that polipo buffers some
> replies from the server (that are in chunks themselves) and falls back to
> a "Content-length" encoding
Yep. Using Content-Length, when the length is known, is more efficient
than using chunked encoding.
> Is it possible to force polipo to always use chunked encoding between the
> proxy and the client ?
In client.c, line 1733, remove the test that says
request->to < 0 && object->length < 0
to unconditionally used chunked encoding with HTTP/1.1 clients.
Juliusz
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H