aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_tcp.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-05-31 07:55:27 +0000
committerChristian Grothoff <christian@grothoff.org>2010-05-31 07:55:27 +0000
commit4a8b0022e6235b9912d02a8e92c020bea1ac1798 (patch)
treea5c5dbaee05c86af33404c9e113c1ff731565084 /src/transport/plugin_transport_tcp.c
parent9c94d4241e499cedfb7696f18793dba8c722e26b (diff)
downloadgnunet-4a8b0022e6235b9912d02a8e92c020bea1ac1798.tar.gz
gnunet-4a8b0022e6235b9912d02a8e92c020bea1ac1798.zip
testcase
Diffstat (limited to 'src/transport/plugin_transport_tcp.c')
-rw-r--r--src/transport/plugin_transport_tcp.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c
index 099e10a1a..865ca325a 100644
--- a/src/transport/plugin_transport_tcp.c
+++ b/src/transport/plugin_transport_tcp.c
@@ -37,7 +37,7 @@
37#include "plugin_transport.h" 37#include "plugin_transport.h"
38#include "transport.h" 38#include "transport.h"
39 39
40#define DEBUG_TCP GNUNET_NO 40#define DEBUG_TCP GNUNET_YES
41 41
42/** 42/**
43 * How long until we give up on transmitting the welcome message? 43 * How long until we give up on transmitting the welcome message?
@@ -339,7 +339,11 @@ tcp_address_to_string (void *cls,
339 } 339 }
340 else 340 else
341 { 341 {
342 GNUNET_break_op (0); 342 GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR,
343 "tcp",
344 _("Unexected address length: %u\n"),
345 addrlen);
346 GNUNET_break (0);
343 return NULL; 347 return NULL;
344 } 348 }
345 inet_ntop (af, sb, buf, INET6_ADDRSTRLEN); 349 inet_ntop (af, sb, buf, INET6_ADDRSTRLEN);
@@ -878,7 +882,11 @@ tcp_plugin_send (void *cls,
878 } 882 }
879 else 883 else
880 { 884 {
881 GNUNET_break_op (0); 885 GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR,
886 "tcp",
887 _("Address of unexpected length: %u\n"),
888 addrlen);
889 GNUNET_break (0);
882 return -1; 890 return -1;
883 } 891 }
884 sa = GNUNET_CONNECTION_create_from_sockaddr (plugin->env->sched, 892 sa = GNUNET_CONNECTION_create_from_sockaddr (plugin->env->sched,