netty5/transport-native-kqueue/src/test/java/io/netty/channel/kqueue
Lunfu Zhong e7b3195570 Support ALLOW_HALF_CLOSURE channel option on Unix domain socket. (#8932)
Motivation:

Since DomainSocketChannel is a DuplexChannel,  which be able to shutdown input or output individually on demands, but ALLOW_HALF_CLOSURE channel option has not been supported yet.

I thought this could be a missing feature of Unix domain socket, so here the PR for it.

Modifications:

1. Added allHalfClosure property both in  EpollDomainSocketChannelConfig and KQueueDomainSocketChannelConfig,
2. Enabled isAllowHalfClosure method of native channel to support domain channel config,
3. Created EpollDomainSocketShutdownOutputByPeerTest and KQueueDomainSocketShutdownOutputByPeerTest to verify the change.

Result:

ALLOW_HALF_CLOSURE channel option can be set with DomainSocketChannel, and no more warning of Unknown channel option 'ALLOW_HALF_CLOSURE'.
2019-03-19 11:24:07 +01:00
..
KQueueAbstractDomainSocketEchoTest.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
KQueueChannelConfigTest.java Fix assertion error when closing / shutdown native channel and SO_LINGER is set. 2017-09-18 14:46:37 -07:00
KQueueCompositeBufferGatheringWriteTest.java IovArray#add return value resulted in more ByteBufs being added during iteration 2018-01-04 08:04:32 -08:00
KQueueDatagramConnectNotExistsTest.java Correctly handle connect/disconnect in EpollDatagramChannel / KQueueDatagramChannel 2017-08-04 09:22:53 +02:00
KQueueDatagramUnicastTest.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
KQueueDetectPeerCloseWithoutReadTest.java KQueue detect peer close without EVFILT_READ 2017-08-18 11:00:18 -07:00
KQueueDomainSocketDataReadInitialStateTest.java Epoll and Kqueue shouldn't read by default (#8024) 2018-06-15 10:28:50 +02:00
KQueueDomainSocketEchoTest.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
KQueueDomainSocketFdTest.java Update tests to not use TestUtils.getFreePort() and so ensure we not try to use a port that is used by the system in the meantime. 2017-07-20 08:25:37 +02:00
KQueueDomainSocketFileRegionTest.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
KQueueDomainSocketFixedLengthEchoTest.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
KQueueDomainSocketGatheringWriteTest.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
KQueueDomainSocketObjectEchoTest.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
KQueueDomainSocketShutdownOutputByPeerTest.java Support ALLOW_HALF_CLOSURE channel option on Unix domain socket. (#8932) 2019-03-19 11:24:07 +01:00
KQueueDomainSocketSslClientRenegotiateTest.java Support using an Executor to offload blocking / long-running tasks wh… (#8847) 2019-02-11 09:47:44 +01:00
KQueueDomainSocketSslEchoTest.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
KQueueDomainSocketSslGreetingTest.java Support using an Executor to offload blocking / long-running tasks wh… (#8847) 2019-02-11 09:47:44 +01:00
KQueueDomainSocketStartTlsTest.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
KQueueDomainSocketStringEchoTest.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
KQueueETSocketAutoReadTest.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
KQueueETSocketConditionalWritabilityTest.java Epoll flush/writabilityChange deadlock 2018-02-20 11:40:58 +01:00
KQueueETSocketDataReadInitialStateTest.java Epoll and Kqueue shouldn't read by default (#8024) 2018-06-15 10:28:50 +02:00
KQueueETSocketExceptionHandlingTest.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
KQueueETSocketHalfClosedTest.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
KQueueETSocketReadPendingTest.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
KQueueEventLoopTest.java Allow to schedule tasks up to Long.MAX_VALUE (#7972) 2018-05-30 11:11:42 +02:00
KQueueRcvAllocatorOverrideSocketSslEchoTest.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
KQueueServerSocketChannelConfigTest.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
KQueueSocketChannelConfigTest.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
KQueueSocketChannelNotYetConnectedTest.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
KQueueSocketCloseForciblyTest.java Only try to deregister from EventLoop when the native Channel was registered before. 2017-05-24 13:19:18 +02:00
KQueueSocketConnectionAttemptTest.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
KQueueSocketConnectTest.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
KQueueSocketEchoTest.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
KQueueSocketFileRegionTest.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
KQueueSocketFixedLengthEchoTest.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
KQueueSocketGatheringWriteTest.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
KQueueSocketMultipleConnectTest.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
KQueueSocketObjectEchoTest.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
KQueueSocketRstTest.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
KQueueSocketShutdownOutputByPeerTest.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
KQueueSocketShutdownOutputBySelfTest.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
KQueueSocketSslClientRenegotiateTest.java Support using an Executor to offload blocking / long-running tasks wh… (#8847) 2019-02-11 09:47:44 +01:00
KQueueSocketSslEchoTest.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
KQueueSocketSslGreetingTest.java Support using an Executor to offload blocking / long-running tasks wh… (#8847) 2019-02-11 09:47:44 +01:00
KQueueSocketSslSessionReuseTest.java Add more tests to KQueue and Epoll testsuites. (#8851) 2019-02-08 20:08:34 +01:00
KQueueSocketStartTlsTest.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
KQueueSocketStringEchoTest.java New native transport for kqueue 2017-05-03 09:53:22 -07:00
KQueueSocketTest.java KQueueSocket#setTrafficClass exceptions 2017-05-18 11:26:27 -07:00
KQueueSocketTestPermutation.java Correctly handle connect/disconnect in EpollDatagramChannel / KQueueDatagramChannel 2017-08-04 09:22:53 +02:00
KqueueWriteBeforeRegisteredTest.java Add more tests to KQueue and Epoll testsuites. (#8851) 2019-02-08 20:08:34 +01:00