grpc-java/netty/src
Benjamin Peterson a68399a9b6
netty: improve server handling of writes to reset streams (#10258)
* netty: improve server handling of writes to reset streams

A server stream can be reset by the client while server writes are still queued. After the stream is reset, the netty connection will forget the stream object. The `NettyServerHandler` must deal with that situation. `sendResponseHandlers` already had some code to do that. This change standardizes that code and adds it to `sendGrpcFrame`. This fixes a potential bug where a `SendGrpcFrameCommand` with `endOfStream=true` would raise an `AssertionError` if written to a reset stream. (This bug is not currently reachable because `endOfStream=false` for all server `SendGrpcFrameCommand` objects.)

* Do not call into the encoder when we know the stream is gone.
2024-02-16 11:08:09 -08:00
..
jmh/java/io/grpc/netty Upgrade dependencies post v1.57.x branch cut (#10359) 2023-07-21 10:15:05 -07:00
main netty: improve server handling of writes to reset streams (#10258) 2024-02-16 11:08:09 -08:00
test/java/io/grpc/netty Add ClientTransportFilter (#10646) 2024-01-03 10:45:22 -08:00