testUnixDomainSocketTooLongPathFails() — netty Function Reference
Architecture documentation for the testUnixDomainSocketTooLongPathFails() function in LinuxSocketTest.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 10bedd42_de59_5b26_5949_e9ed511586c6["testUnixDomainSocketTooLongPathFails()"] 4a9abc5d_1dba_c643_f76d_b922328fd23f["LinuxSocketTest"] 10bedd42_de59_5b26_5949_e9ed511586c6 -->|defined in| 4a9abc5d_1dba_c643_f76d_b922328fd23f style 10bedd42_de59_5b26_5949_e9ed511586c6 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
transport-native-epoll/src/test/java/io/netty/channel/epoll/LinuxSocketTest.java lines 75–97
@Test
public void testUnixDomainSocketTooLongPathFails() throws IOException {
// Most systems has a limit for UDS path of 108, 255 is generally too long.
StringBuilder socketPath = new StringBuilder("/tmp/");
while (socketPath.length() < 255) {
socketPath.append(UUID.randomUUID());
}
final DomainSocketAddress domainSocketAddress = new DomainSocketAddress(
socketPath.toString());
final Socket socket = Socket.newSocketDomain();
try {
Exception exception = Assertions.assertThrows(NativeIoException.class, new Executable() {
@Override
public void execute() throws Throwable {
socket.bind(domainSocketAddress);
}
});
Assertions.assertTrue(exception.getMessage().contains("too long"));
} finally {
socket.close();
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does testUnixDomainSocketTooLongPathFails() do?
testUnixDomainSocketTooLongPathFails() is a function in the netty codebase, defined in transport-native-epoll/src/test/java/io/netty/channel/epoll/LinuxSocketTest.java.
Where is testUnixDomainSocketTooLongPathFails() defined?
testUnixDomainSocketTooLongPathFails() is defined in transport-native-epoll/src/test/java/io/netty/channel/epoll/LinuxSocketTest.java at line 75.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free