netty5/transport-native-epoll/src/test/java/io/netty/channel/epoll
Chris Vest 322f75c5a2
Fix a problem with IP protocol version confusion on MacOS when TCP FastOpen is enabled (#11588)
Motivation:
This fixes a bug that would result in an `io.netty.channel.unix.Errors$NativeIoException: connectx(..) failed: Address family not supported by protocol family` error.
This happens when the connecting socket is configured to use IPv6 but the address being connected to is IPv4.
This can occur because, for instance, Netty and `InetAddress.getLoopbackAddress()` have different preferences for IPv6 vs. IPv4.

Modification:
Pass the correct ipv6 or ipv4 flags to connectx, depending on whether the socket was created for AF_INET or AF_INET6, rather than relying on the IP version of the destination address.

Result:
No more issue with TCP FastOpen on MacOS when using addresses of the "wrong" IP version.
2021-08-18 20:43:01 +02:00
..
EpollAbstractDomainSocketEchoTest.java Enable nohttp check during the build (#10708) 2020-10-23 14:44:18 +02:00
EpollChannelConfigTest.java Migrate testsuite, transport-native-epoll, transport-native-kqueue, and transport-native-unix-common-tests tests to JUnit 5 (#11320) 2021-05-27 15:55:58 +02:00
EpollCompositeBufferGatheringWriteTest.java TCP Fast Open for clients (#11006) 2021-02-15 13:13:44 +01:00
EpollDatagramChannelConfigTest.java Migrate testsuite, transport-native-epoll, transport-native-kqueue, and transport-native-unix-common-tests tests to JUnit 5 (#11320) 2021-05-27 15:55:58 +02:00
EpollDatagramChannelTest.java Migrate testsuite, transport-native-epoll, transport-native-kqueue, and transport-native-unix-common-tests tests to JUnit 5 (#11320) 2021-05-27 15:55:58 +02:00
EpollDatagramConnectNotExistsTest.java Enable nohttp check during the build (#10708) 2020-10-23 14:44:18 +02:00
EpollDatagramMulticastIpv6WithIpv4AddrTest.java Avoid letting ipv6 addresses join ipv4 groups (#11015) 2021-02-16 14:21:32 +01:00
EpollDatagramMulticastIPv6Test.java Enable nohttp check during the build (#10708) 2020-10-23 14:44:18 +02:00
EpollDatagramMulticastTest.java Enable nohttp check during the build (#10708) 2020-10-23 14:44:18 +02:00
EpollDatagramScatteringReadTest.java Migrate testsuite, transport-native-epoll, transport-native-kqueue, and transport-native-unix-common-tests tests to JUnit 5 (#11320) 2021-05-27 15:55:58 +02:00
EpollDatagramUnicastIPv6MappedTest.java Enable nohttp check during the build (#10708) 2020-10-23 14:44:18 +02:00
EpollDatagramUnicastIPv6Test.java Enable nohttp check during the build (#10708) 2020-10-23 14:44:18 +02:00
EpollDatagramUnicastTest.java Add support for Unix domain datagram sockets when using native epoll/kqueue transport (#11423) 2021-07-09 09:45:43 +02:00
EpollDetectPeerCloseWithoutReadTest.java Enable nohttp check during the build (#10708) 2020-10-23 14:44:18 +02:00
EpollDomainDatagramPathTest.java Fix a problem with IP protocol version confusion on MacOS when TCP FastOpen is enabled (#11588) 2021-08-18 20:43:01 +02:00
EpollDomainDatagramUnicastTest.java Fix a problem with IP protocol version confusion on MacOS when TCP FastOpen is enabled (#11588) 2021-08-18 20:43:01 +02:00
EpollDomainSocketDataReadInitialStateTest.java Fix a problem with IP protocol version confusion on MacOS when TCP FastOpen is enabled (#11588) 2021-08-18 20:43:01 +02:00
EpollDomainSocketEchoTest.java Fix a problem with IP protocol version confusion on MacOS when TCP FastOpen is enabled (#11588) 2021-08-18 20:43:01 +02:00
EpollDomainSocketFdTest.java Fix a problem with IP protocol version confusion on MacOS when TCP FastOpen is enabled (#11588) 2021-08-18 20:43:01 +02:00
EpollDomainSocketFileRegionTest.java Fix a problem with IP protocol version confusion on MacOS when TCP FastOpen is enabled (#11588) 2021-08-18 20:43:01 +02:00
EpollDomainSocketFixedLengthEchoTest.java Fix a problem with IP protocol version confusion on MacOS when TCP FastOpen is enabled (#11588) 2021-08-18 20:43:01 +02:00
EpollDomainSocketGatheringWriteTest.java Fix a problem with IP protocol version confusion on MacOS when TCP FastOpen is enabled (#11588) 2021-08-18 20:43:01 +02:00
EpollDomainSocketObjectEchoTest.java Fix a problem with IP protocol version confusion on MacOS when TCP FastOpen is enabled (#11588) 2021-08-18 20:43:01 +02:00
EpollDomainSocketReuseFdTest.java Fix a problem with IP protocol version confusion on MacOS when TCP FastOpen is enabled (#11588) 2021-08-18 20:43:01 +02:00
EpollDomainSocketShutdownOutputByPeerTest.java Fix a problem with IP protocol version confusion on MacOS when TCP FastOpen is enabled (#11588) 2021-08-18 20:43:01 +02:00
EpollDomainSocketSslClientRenegotiateTest.java Fix a problem with IP protocol version confusion on MacOS when TCP FastOpen is enabled (#11588) 2021-08-18 20:43:01 +02:00
EpollDomainSocketSslEchoTest.java Fix a problem with IP protocol version confusion on MacOS when TCP FastOpen is enabled (#11588) 2021-08-18 20:43:01 +02:00
EpollDomainSocketSslGreetingTest.java Fix a problem with IP protocol version confusion on MacOS when TCP FastOpen is enabled (#11588) 2021-08-18 20:43:01 +02:00
EpollDomainSocketStartTlsTest.java Fix a problem with IP protocol version confusion on MacOS when TCP FastOpen is enabled (#11588) 2021-08-18 20:43:01 +02:00
EpollDomainSocketStringEchoTest.java Fix a problem with IP protocol version confusion on MacOS when TCP FastOpen is enabled (#11588) 2021-08-18 20:43:01 +02:00
EpollETSocketAutoReadTest.java TCP Fast Open for clients (#11006) 2021-02-15 13:13:44 +01:00
EpollETSocketConditionalWritabilityTest.java TCP Fast Open for clients (#11006) 2021-02-15 13:13:44 +01:00
EpollETSocketDataReadInitialStateTest.java TCP Fast Open for clients (#11006) 2021-02-15 13:13:44 +01:00
EpollETSocketExceptionHandlingTest.java TCP Fast Open for clients (#11006) 2021-02-15 13:13:44 +01:00
EpollETSocketHalfClosed.java TCP Fast Open for clients (#11006) 2021-02-15 13:13:44 +01:00
EpollETSocketReadPendingTest.java TCP Fast Open for clients (#11006) 2021-02-15 13:13:44 +01:00
EpollETSocketStringEchoBusyWaitTest.java Enable nohttp check during the build (#10708) 2020-10-23 14:44:18 +02:00
EpollEventLoopTest.java Tail tasks queue: configure separately from tasks queue (#11400) 2021-07-01 10:51:10 +02:00
EpollJdkLoopbackSocketSslEchoTest.java Fix a problem with IP protocol version confusion on MacOS when TCP FastOpen is enabled (#11588) 2021-08-18 20:43:01 +02:00
EpollKQueueIovArrayTest.java Migrate testsuite, transport-native-epoll, transport-native-kqueue, and transport-native-unix-common-tests tests to JUnit 5 (#11320) 2021-05-27 15:55:58 +02:00
EpollLTSocketAutoReadTest.java TCP Fast Open for clients (#11006) 2021-02-15 13:13:44 +01:00
EpollLTSocketConditionalWritabilityTest.java TCP Fast Open for clients (#11006) 2021-02-15 13:13:44 +01:00
EpollLTSocketDataReadInitialStateTest.java TCP Fast Open for clients (#11006) 2021-02-15 13:13:44 +01:00
EpollLTSocketExceptionHandlingTest.java TCP Fast Open for clients (#11006) 2021-02-15 13:13:44 +01:00
EpollLTSocketHalfClosed.java TCP Fast Open for clients (#11006) 2021-02-15 13:13:44 +01:00
EpollLTSocketReadPendingTest.java TCP Fast Open for clients (#11006) 2021-02-15 13:13:44 +01:00
EpollLTSocketStringEchoBusyWaitTest.java Enable nohttp check during the build (#10708) 2020-10-23 14:44:18 +02:00
EpollReuseAddrTest.java Migrate testsuite, transport-native-epoll, transport-native-kqueue, and transport-native-unix-common-tests tests to JUnit 5 (#11320) 2021-05-27 15:55:58 +02:00
EpollServerSocketChannelConfigTest.java Migrate testsuite, transport-native-epoll, transport-native-kqueue, and transport-native-unix-common-tests tests to JUnit 5 (#11320) 2021-05-27 15:55:58 +02:00
EpollSocketChannelConfigTest.java Improve test failure reporting of EpollSocketChannelConfigTest (#11570) 2021-08-12 11:37:56 +02:00
EpollSocketChannelNotYetConnectedTest.java TCP Fast Open for clients (#11006) 2021-02-15 13:13:44 +01:00
EpollSocketChannelTest.java Migrate testsuite, transport-native-epoll, transport-native-kqueue, and transport-native-unix-common-tests tests to JUnit 5 (#11320) 2021-05-27 15:55:58 +02:00
EpollSocketCloseForciblyTest.java TCP Fast Open for clients (#11006) 2021-02-15 13:13:44 +01:00
EpollSocketConnectionAttemptTest.java Enable nohttp check during the build (#10708) 2020-10-23 14:44:18 +02:00
EpollSocketConnectTest.java Add support for client-side TCP FastOpen to KQueue MacOS (#11560) 2021-08-12 13:38:46 +02:00
EpollSocketEchoTest.java TCP Fast Open for clients (#11006) 2021-02-15 13:13:44 +01:00
EpollSocketFileRegionTest.java TCP Fast Open for clients (#11006) 2021-02-15 13:13:44 +01:00
EpollSocketFixedLengthEchoTest.java TCP Fast Open for clients (#11006) 2021-02-15 13:13:44 +01:00
EpollSocketGatheringWriteTest.java TCP Fast Open for clients (#11006) 2021-02-15 13:13:44 +01:00
EpollSocketMultipleConnectTest.java TCP Fast Open for clients (#11006) 2021-02-15 13:13:44 +01:00
EpollSocketObjectEchoTest.java TCP Fast Open for clients (#11006) 2021-02-15 13:13:44 +01:00
EpollSocketRstTest.java Migrate testsuite, transport-native-epoll, transport-native-kqueue, and transport-native-unix-common-tests tests to JUnit 5 (#11320) 2021-05-27 15:55:58 +02:00
EpollSocketShutdownOutputByPeerTest.java Enable nohttp check during the build (#10708) 2020-10-23 14:44:18 +02:00
EpollSocketShutdownOutputBySelfTest.java Enable nohttp check during the build (#10708) 2020-10-23 14:44:18 +02:00
EpollSocketSslClientRenegotiateTest.java Migrate testsuite, transport-native-epoll, transport-native-kqueue, and transport-native-unix-common-tests tests to JUnit 5 (#11320) 2021-05-27 15:55:58 +02:00
EpollSocketSslEchoTest.java Migrate testsuite, transport-native-epoll, transport-native-kqueue, and transport-native-unix-common-tests tests to JUnit 5 (#11320) 2021-05-27 15:55:58 +02:00
EpollSocketSslGreetingTest.java Migrate testsuite, transport-native-epoll, transport-native-kqueue, and transport-native-unix-common-tests tests to JUnit 5 (#11320) 2021-05-27 15:55:58 +02:00
EpollSocketSslSessionReuseTest.java Migrate testsuite, transport-native-epoll, transport-native-kqueue, and transport-native-unix-common-tests tests to JUnit 5 (#11320) 2021-05-27 15:55:58 +02:00
EpollSocketStartTlsTest.java Migrate testsuite, transport-native-epoll, transport-native-kqueue, and transport-native-unix-common-tests tests to JUnit 5 (#11320) 2021-05-27 15:55:58 +02:00
EpollSocketStringEchoBusyWaitTest.java Migrate testsuite, transport-native-epoll, transport-native-kqueue, and transport-native-unix-common-tests tests to JUnit 5 (#11320) 2021-05-27 15:55:58 +02:00
EpollSocketStringEchoTest.java TCP Fast Open for clients (#11006) 2021-02-15 13:13:44 +01:00
EpollSocketTcpMd5Test.java Remove Unused Imports (#11546) 2021-08-05 13:54:48 +02:00
EpollSocketTest.java Fix a problem with IP protocol version confusion on MacOS when TCP FastOpen is enabled (#11588) 2021-08-18 20:43:01 +02:00
EpollSocketTestPermutation.java Fix a problem with IP protocol version confusion on MacOS when TCP FastOpen is enabled (#11588) 2021-08-18 20:43:01 +02:00
EpollSpliceTest.java Migrate rest of epoll module to junit5 (#11442) 2021-07-02 08:04:48 +02:00
EpollTest.java Migrate testsuite, transport-native-epoll, transport-native-kqueue, and transport-native-unix-common-tests tests to JUnit 5 (#11320) 2021-05-27 15:55:58 +02:00
EpollWriteBeforeRegisteredTest.java TCP Fast Open for clients (#11006) 2021-02-15 13:13:44 +01:00
LinuxSocketTest.java Migrate testsuite, transport-native-epoll, transport-native-kqueue, and transport-native-unix-common-tests tests to JUnit 5 (#11320) 2021-05-27 15:55:58 +02:00
NativeTest.java Migrate testsuite, transport-native-epoll, transport-native-kqueue, and transport-native-unix-common-tests tests to JUnit 5 (#11320) 2021-05-27 15:55:58 +02:00