Issue in Reactive gRPC streaming: Sending GOAWAY failed:'Connection reset by peer'. Forcing shutdown of the connection. Broken pipe

916 views
Skip to first unread message

pranjul tayal

unread,
Apr 9, 2022, 3:53:10 AM4/9/22
to grpc.io
Hi guys,

I am implementing a gRPC client server in spring boot java with stream of outputs.
With BloomRPC server is working fine. But when I am connecting server with client then on CLI of client it shows "io.grpc.StatusRuntimeException: UNAVAILABLE: io exception".
On CLI of server it shows "Debugger failed to attach: handshake failed - received >PRI * HTTP/2.0< - expected >JDWP-Handshake<"

In the logs of of client application I can see the below logs,
grpc-nio-worker-ELG-1-4] [] DEBUG i.g.n.s.i.g.netty.NettyClientHandler - [id: 0x2551465d, L:/127.0.0.1:61456 - R:localhost/127.0.0.1:6565] OUTBOUND SETTINGS: ack=false settings={ENABLE_PUSH=0, MAX_CONCURRENT_STREAMS=0, INITIAL_WINDOW_SIZE=1048576, MAX_HEADER_LIST_SIZE=8192}
[
grpc-nio-worker-ELG-1-4] [] DEBUG i.g.n.s.i.g.netty.NettyClientHandler - [id: 0x2551465d, L:/127.0.0.1:61456 - R:localhost/127.0.0.1:6565] OUTBOUND WINDOW_UPDATE: streamId=0 windowSizeIncrement=98304


grpc-nio-worker-ELG-1-4] [] DEBUG i.g.n.s.i.g.netty.NettyClientHandler - [id: 0x2551465d, L:/127.0.0.1:61456 - R:localhost/127.0.0.1:6565] OUTBOUND GO_AWAY: lastStreamId=0 errorCode=2 length=24 bytes=436f6e6e656374696f6e2072657365742062792070656572

[grpc-nio-worker-ELG-1-4] [] DEBUG i.g.n.s.i.n.h.c.h.Http2ConnectionHandler - [id: 0x2551465d, L:/127.0.0.1:61456 ! R:localhost/127.0.0.1:6565] Sending GOAWAY failed: lastStreamId '0', errorCode '2', debugData 'Connection reset by peer'. Forcing shutdown of the connection.
java.io.IOException: Broken pipe

Any help would be highly appreciated.

Regards,
Pranjul tayal,

pranjul tayal

unread,
Apr 9, 2022, 4:13:41 AM4/9/22
to grpc.io
P.S. I am using a reactorGrpc stub like
@GrpcClient("hello-client")
ReactorHelloGrpc.ReactorHelloStub stub;

And then in method,
Flux<Output> flux=stub.Hellomethod(Input of Mono)

Eric Anderson

unread,
Apr 13, 2022, 2:19:58 PM4/13/22
to pranjul tayal, grpc.io
On Sat, Apr 9, 2022 at 12:53 AM pranjul tayal <pranja...@gmail.com> wrote:
With BloomRPC server is working fine. But when I am connecting server with client then on CLI of client it shows "io.grpc.StatusRuntimeException: UNAVAILABLE: io exception".
On CLI of server it shows "Debugger failed to attach: handshake failed - received >PRI * HTTP/2.0< - expected >JDWP-Handshake<"

It seems like you are pointing the client at the wrong port. JDWP is the Java remote debugging protocol.
Reply all
Reply to author
Forward
0 new messages