Commit c1e32b90 authored by Committed by Patrick Griffis
gsocketclient: Improve handling of slow initial connections
Currently a new connection will not be attempted until the previous one has timed out and as the current API only exposes a single timeout value in practice it often means that it will wait 30 seconds (or forever with 0 (the default)) on each connection. This is unacceptable so we are now trying to follow the behavior RFC 8305 recommends by making multiple connection attempts if the connection takes longer than 250ms. The first connection to make it to completion then wins.
Showing with 151 additions and 25 deletions