[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r27174 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r27174 - gnunet/src/transport |
Date: |
Thu, 16 May 2013 15:02:52 +0200 |
Author: wachs
Date: 2013-05-16 15:02:52 +0200 (Thu, 16 May 2013)
New Revision: 27174
Modified:
gnunet/src/transport/plugin_transport_udp.c
Log:
returning here is not a good idea since:
- IPv6 socket can be opened but will be not closed if IPv4 error is handled as
hard error
- Plugin will return correctly with IPv6 socket open but never scheduled
Modified: gnunet/src/transport/plugin_transport_udp.c
===================================================================
--- gnunet/src/transport/plugin_transport_udp.c 2013-05-16 12:45:56 UTC (rev
27173)
+++ gnunet/src/transport/plugin_transport_udp.c 2013-05-16 13:02:52 UTC (rev
27174)
@@ -2515,6 +2515,7 @@
plugin->sockv6 = GNUNET_NETWORK_socket_create (PF_INET6, SOCK_DGRAM, 0);
if (NULL == plugin->sockv6)
{
+ GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "socket");
LOG (GNUNET_ERROR_TYPE_WARNING, "Disabling IPv6 since it is not
supported on this system!\n");
plugin->enable_ipv6 = GNUNET_NO;
}
@@ -2588,7 +2589,8 @@
if (NULL == plugin->sockv4)
{
GNUNET_log_strerror (GNUNET_ERROR_TYPE_WARNING, "socket");
- return sockets_created;
+ LOG (GNUNET_ERROR_TYPE_WARNING, "Disabling IPv4 since it is not supported
on this system!\n");
+ plugin->enable_ipv4 = GNUNET_NO;
}
else
{
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r27174 - gnunet/src/transport,
gnunet <=