feat(client): implement rfc 6555 (happy eyeballs)

Update client connector to attempt a parallel connection using
alternative address family, if connection using preferred address family
takes too long.

Closes: #1316
This commit is contained in:
Hrvoje Ban
2018-07-08 10:11:38 +02:00
committed by Sean McArthur
parent 5b5e309095
commit 02a9c29e2e
3 changed files with 337 additions and 17 deletions

View File

@@ -1,5 +1,5 @@
language: rust
sudo: false
sudo: true # Required for functional IPv6 (forces VM instead of Docker).
dist: trusty
matrix:
fast_finish: true
@@ -18,6 +18,13 @@ matrix:
cache:
apt: true
before_script:
# Add an IPv6 config - see the corresponding Travis issue
# https://github.com/travis-ci/travis-ci/issues/8361
- if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
sudo sh -c 'echo 0 > /proc/sys/net/ipv6/conf/all/disable_ipv6';
fi
script:
- ./.travis/readme.py
- cargo build $FEATURES