mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-28 17:34:17 -04:00
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. |
||
---|---|---|
.. | ||
analysis-icu | ||
analysis-kuromoji | ||
analysis-phonetic | ||
analysis-smartcn | ||
analysis-stempel | ||
analysis-ukrainian | ||
discovery-azure-classic | ||
discovery-ec2 | ||
discovery-file | ||
discovery-gce | ||
examples | ||
ingest-attachment | ||
ingest-geoip | ||
ingest-user-agent | ||
jvm-example | ||
mapper-murmur3 | ||
mapper-size | ||
repository-azure | ||
repository-gcs | ||
repository-hdfs | ||
repository-s3 | ||
store-smb | ||
transport-nio | ||
build.gradle |