summaryrefslogtreecommitdiff
path: root/socket/udp-bsd.c
diff options
context:
space:
mode:
authorFabrice Bellet <fabrice@bellet.info>2021-10-01 17:35:44 +0200
committerOlivier CrĂȘte <olivier.crete@ocrete.ca>2021-11-22 21:28:26 +0000
commit7bd11cf01a07d26215c4ad51a3bc4521f980188b (patch)
treea2824a6441acbf232de0ddf877752d7494e8086b /socket/udp-bsd.c
parent5123cea3a28b0ad30d418410b4ee1fbb0a1884cc (diff)
downloadlibnice-7bd11cf01a07d26215c4ad51a3bc4521f980188b.tar.gz
conncheck: don't ignore local socket errors
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.
Diffstat (limited to 'socket/udp-bsd.c')
-rw-r--r--socket/udp-bsd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/socket/udp-bsd.c b/socket/udp-bsd.c
index d1c8513..7064408 100644
--- a/socket/udp-bsd.c
+++ b/socket/udp-bsd.c
@@ -335,7 +335,7 @@ socket_send_messages (NiceSocket *sock, const NiceAddress *to,
nice_address_to_string (&local_addr, local_addr_str);
g_object_unref (gsocket);
- nice_debug_verbose ("%s: udp-bsd socket %p %s:%u -> %s:%u: error: %s",
+ nice_debug ("%s: udp-bsd socket %p %s:%u -> %s:%u: error: %s",
G_STRFUNC, sock,
local_addr_str, nice_address_get_port (&local_addr),
remote_addr_str, nice_address_get_port (&remote_addr),