Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-dev] Can jetty proxy servlet work with http2 correctly?

I don't see Jetty involved in this description, or in the stacktrace.

But here, go follow the netty (different project then us) bug for this -

Joakim Erdfelt / joakim@xxxxxxxxxxx

On Wed, Sep 22, 2021 at 2:35 PM Eggie <eggchul1024@xxxxxxxxx> wrote:
Hi Jetty-Dev@Eclipse,

I am currently working on a research and trying to connect a Jetty server with a grpc(base using netty). Currently having below error over the grace server.

grpc server1 -> Jetty (proxyservlet) -> grpc server2
        at io.grpc.netty.AbstractHttp2Headers.setLong(
        at io.grpc.netty.AbstractHttp2Headers.setLong(
        at io.netty.handler.codec.http2.DefaultHttp2ConnectionDecoder$FrameReadListener.onHeadersRead(
        at io.netty.handler.codec.http2.DefaultHttp2ConnectionDecoder$FrameReadListener.onHeadersRead(
        at io.netty.handler.codec.http2.DefaultHttp2ConnectionDecoder$PrefaceFrameListener.onHeadersRead(
        at io.netty.handler.codec.http2.Http2InboundFrameLogger$1.onHeadersRead(

After couple attempts of debugging over the custom proxy servlet, I found that the request after being copied in AbstractProxyServlet it will be http1 request. So I want to ask if the proxyServlet will turn an http2 to http1 by default ? Will this be the cause of metadata damage or to the header? I have httpclient using http2 which turns the request back to http2.

Please let me know if anyone could help with this. And if possible, do you have any working example that a jetty server could talking to grpc server.

Thank you,

jetty-dev mailing list
To unsubscribe from this list, visit

Back to the top