netty5/codec-http2/src/main
Norman Maurer 8cfd71c354 Call ctx.flush() when onStreamClosed(...) produces a window update frame (#9818)
Motivation:

We use the onStreamClosed(...) callback to return unconsumed bytes back to the window of the connection when needed. When this happens we will write a window update frame but not automatically call ctx.flush(). As the user has no insight into this it could in the worst case result in a "deadlock" as the frame is never written out ot the socket.

Modifications:

- If onStreamClosed(...) produces a window update frame call ctx.flush()
- Add unit test

Result:

No stales possible due unflushed window update frames produced by onStreamClosed(...) when not all bytes were consumed before the stream was closed
2019-11-28 11:11:49 +01:00
..
java/io/netty/handler/codec/http2 Call ctx.flush() when onStreamClosed(...) produces a window update frame (#9818) 2019-11-28 11:11:49 +01:00
resources/META-INF/native-image/io.netty/codec-http2 Add io.netty.handler.codec.http2.Http2ConnectionHandler for runtime GraalVM compilation (#9621) 2019-10-07 11:02:13 +04:00