]> git.ipfire.org Git - thirdparty/curl.git/commit
connect: happy eyeballs cleanup
authorDaniel Stenberg <daniel@haxx.se>
Thu, 12 Mar 2020 13:03:26 +0000 (14:03 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sun, 15 Mar 2020 10:03:11 +0000 (11:03 +0100)
commitdbd16c3e256c6ce872829d1654785485361a0a78
tree773dfedb2412a9cea9ea9b1d0119d35c11c2f389
parentdc595210aead4782e19619033c2da89c13eb70d1
connect: happy eyeballs cleanup

Make sure each separate index in connn->tempaddr[] is used for a fixed
family (and only that family) during the connection process.

If family one takes a long time and family two fails immediately, the
previous logic could misbehave and retry the same family two address
repeatedly.

Reported-by: Paul Vixie
Reported-by: Jay Satiro
Fixes #5083
Fixes #4954
Closes #5089
lib/connect.c
lib/urldata.h