#1246 Implement happy eyeballs for all IP address candidates for s2s
Reporter
Jonas Wielicki
Owner
MattJ
Created
Updated
Stars
★ (1)
Tags
Component-Network
Status-Fixed
Type-Enhancement
Milestone-0.13
Priority-Medium
net.connect
Jonas Wielicki
on
Description of feature:
Attempt to connect to all possible IP addresses (maybe up to a limit :)) of a hostname at once and use the first connection which succeeds (on whatever level you want to define "success").
Motivation:
Prosody behaves really badly if the first candidate is not connectable and fails with a timeout (blackholed or internet routing mess). The s2s connection will fail consistently until the source of the timeout is fixed.
Description of feature: Attempt to connect to all possible IP addresses (maybe up to a limit :)) of a hostname at once and use the first connection which succeeds (on whatever level you want to define "success"). Motivation: Prosody behaves really badly if the first candidate is not connectable and fails with a timeout (blackholed or internet routing mess). The s2s connection will fail consistently until the source of the timeout is fixed.
Happy reading: https://tools.ietf.org/html/rfc8305
ChangesTags for discoverability! Also https://www.rfc-editor.org/info/rfc8305 is probably the more stable URL for the RFC.
ChangesDone in https://hg.prosody.im/trunk/rev/acfc51b9530c https://hg.prosody.im/trunk/rev/9f0baf15e792 https://hg.prosody.im/trunk/rev/596625eed326 https://hg.prosody.im/trunk/rev/e132a4279914 https://hg.prosody.im/trunk/rev/18a3a6218100
Changes