windowUpdateMayFail() — netty Function Reference
Architecture documentation for the windowUpdateMayFail() function in Http2FrameCodecTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 0a7ea28f_9f81_be19_43aa_02a0a3e7cc69["windowUpdateMayFail()"] 71f17950_8fc4_c3e9_2e13_384d1ac7ea2c["Http2FrameCodecTest"] 0a7ea28f_9f81_be19_43aa_02a0a3e7cc69 -->|defined in| 71f17950_8fc4_c3e9_2e13_384d1ac7ea2c style 0a7ea28f_9f81_be19_43aa_02a0a3e7cc69 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http2/src/test/java/io/netty/handler/codec/http2/Http2FrameCodecTest.java lines 558–575
@Test
public void windowUpdateMayFail() throws Exception {
frameInboundWriter.writeInboundHeaders(3, request, 31, false);
Http2Connection connection = frameCodec.connection();
Http2Stream stream = connection.stream(3);
assertNotNull(stream);
Http2HeadersFrame inboundHeaders = inboundHandler.readInbound();
assertNotNull(inboundHeaders);
Http2FrameStream stream2 = inboundHeaders.stream();
// Fails, cause trying to return too many bytes to the flow controller
ChannelFuture f = channel.write(new DefaultHttp2WindowUpdateFrame(100).stream(stream2));
assertTrue(f.isDone());
assertFalse(f.isSuccess());
assertInstanceOf(Http2Exception.class, f.cause());
}
Domain
Subdomains
Source
Frequently Asked Questions
What does windowUpdateMayFail() do?
windowUpdateMayFail() is a function in the netty codebase, defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2FrameCodecTest.java.
Where is windowUpdateMayFail() defined?
windowUpdateMayFail() is defined in codec-http2/src/test/java/io/netty/handler/codec/http2/Http2FrameCodecTest.java at line 558.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free