OpenSearch/modules/transport-netty4
Tim Brooks ee7eac8dc1
`MockTcpTransport` to connect asynchronously (#28203)
The method `initiateChannel` on `TcpTransport` is explicit in that
channels can be connect asynchronously. All production implementations
do connect asynchronously. Only the blocking `MockTcpTransport`
connects in a synchronous manner. This avoids testing some of the
blocking code in `TcpTransport` that waits on connections to complete.
Additionally, it requires a more extensive method signature than
required for other transports.

This commit modifies the `MockTcpTransport` to make these connections
asynchronously on a different thread. Additionally, it simplifies that
`initiateChannel` method signature.
2018-01-15 10:20:30 -07:00
..
licenses Upgrade to Netty 4.1.13.Final 2017-07-06 15:37:00 -04:00
src `MockTcpTransport` to connect asynchronously (#28203) 2018-01-15 10:20:30 -07:00
build.gradle Upgrade to Netty 4.1.13.Final 2017-07-06 15:37:00 -04:00