Skip to content
  • Fabrice Bellet's avatar
    conncheck: don't ignore local socket errors · 7bd11cf0
    Fabrice Bellet authored and Olivier Crête's avatar Olivier Crête committed
    With this patch we ensure that local socket errors during connection
    establishment are properly transmitted to the connection check layer, so
    the related pair can be put in state failed when needed. The local
    socket errors we are interested in, are those occuring when the local
    source address cannot be bound anymore, because the underlying interface
    vanished for example.
    
    In particular, we don't ignore errors coming from g_socket_bind() with
    tcp active sockets, that perform a bind to *whatever* local address is
    available, in case it cannot bind to the specified address.
    
    This behaviour was demonstrated with the test-tcp example, that tried
    to bind to the IPv4 loopback address on a socket initially created for
    the IPv6 loopback.
    7bd11cf0