testFailFastHeaderTooLong() — netty Function Reference
Architecture documentation for the testFailFastHeaderTooLong() function in HAProxyMessageDecoderTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD abeb1c11_1712_61bf_790b_0cdba37f72ad["testFailFastHeaderTooLong()"] 88909aff_3546_2e28_19d9_812a1929ee17["HAProxyMessageDecoderTest"] abeb1c11_1712_61bf_790b_0cdba37f72ad -->|defined in| 88909aff_3546_2e28_19d9_812a1929ee17 style abeb1c11_1712_61bf_790b_0cdba37f72ad fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-haproxy/src/test/java/io/netty/handler/codec/haproxy/HAProxyMessageDecoderTest.java lines 254–269
@Test
public void testFailFastHeaderTooLong() {
final EmbeddedChannel fastFailCh = new EmbeddedChannel(new HAProxyMessageDecoder(true));
try {
final String headerPart1 = "PROXY TCP4 192.168.0.1 192.168.0.11 56324 " +
"000000000000000000000000000000000000000000000000000000000000000000000443";
assertThrows(HAProxyProtocolException.class, new Executable() {
@Override
public void execute() {
fastFailCh.writeInbound(copiedBuffer(headerPart1, CharsetUtil.US_ASCII));
}
}, "over " + headerPart1.length());
} finally {
assertFalse(fastFailCh.finishAndReleaseAll());
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does testFailFastHeaderTooLong() do?
testFailFastHeaderTooLong() is a function in the netty codebase, defined in codec-haproxy/src/test/java/io/netty/handler/codec/haproxy/HAProxyMessageDecoderTest.java.
Where is testFailFastHeaderTooLong() defined?
testFailFastHeaderTooLong() is defined in codec-haproxy/src/test/java/io/netty/handler/codec/haproxy/HAProxyMessageDecoderTest.java at line 254.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free