[undertow-dev] Proxy and chunking.
Stuart Douglas
sdouglas at redhat.com
Thu Mar 5 15:31:52 EST 2020
On Thu, 5 Mar 2020 at 20:29, Jocke Eriksson <jockeeriksson at msn.com> wrote:
> Hi devs and followers we have a problem and maybe someone on this list
> have some input.
>
> We use undertow as an API gateway in front of JBoss application servers.
> One API we have is responding with a chunked response, and the receiving
> side is expecting that each chunk is a valid JSon object.
> When we analyze the TCP dumps it looks like some chunks are not the full
> JSon response we are expecting.
>
This is a terrible idea, chunking is an implementation detail of the HTTP
transport layer. Proxies are allowed to change the chunk boundaries.
>
> So the question is could this be a problem in the gateway?
>
> I found a flag called PRE_CHUNKED_RESPONSE could this be the answer.
> If so, how do we apply it in a proxy handler?
>
You can't really, the client the proxy uses will strip the chunk data, so
the proxy will never see it, this would be a feature request.
Stuart
>
> Regards Joakim.
> _______________________________________________
> undertow-dev mailing list
> undertow-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/undertow-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20200306/968d9912/attachment.html
More information about the undertow-dev
mailing list