grpc-java/netty
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
..
shaded Upgrade to Gradle 8.2.1 and upgrade plugins 2023-08-02 13:29:44 -07:00
src netty: improve server handling of writes to reset streams (#10258) 2024-02-16 11:08:09 -08:00
BUILD.bazel bazel: Export deps from maven stand-in targets 2023-01-03 13:36:27 -08:00
build.gradle Change many api deps to implementation deps 2023-12-15 15:14:29 -08:00