grpc-java icon indicating copy to clipboard operation
grpc-java copied to clipboard

Handle IOException thrown by FrameReader.nextFrame() as PROTOCOL_ERROR.

Open madongfly opened this issue 11 years ago • 0 comments

In current implementation, we treat the IOException thrown by FrameReader.nextFrame() as the "IO" issue, so we just close the connection and don't send anymore.

But actually, it may throw IOException for protocol errors like: invalid frame size, RST_STREAM with stream id 0, invalid values in SETTINGS etc, in such cases, we should send a GOAWAY before closing the connection.

madongfly avatar May 26 '15 17:05 madongfly