[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r33688 - gnunet/src/cadet
From: |
gnunet |
Subject: |
[GNUnet-SVN] r33688 - gnunet/src/cadet |
Date: |
Tue, 17 Jun 2014 14:13:29 +0200 |
Author: bartpolot
Date: 2014-06-17 14:13:29 +0200 (Tue, 17 Jun 2014)
New Revision: 33688
Modified:
gnunet/src/cadet/gnunet-service-cadet_peer.c
Log:
- test and log for bug #0003423
Modified: gnunet/src/cadet/gnunet-service-cadet_peer.c
===================================================================
--- gnunet/src/cadet/gnunet-service-cadet_peer.c 2014-06-17 12:13:27 UTC
(rev 33687)
+++ gnunet/src/cadet/gnunet-service-cadet_peer.c 2014-06-17 12:13:29 UTC
(rev 33688)
@@ -967,7 +967,7 @@
case GNUNET_MESSAGE_TYPE_CADET_CONNECTION_CREATE:
LOG (GNUNET_ERROR_TYPE_DEBUG, " path create\n");
if (GCC_is_origin (c, GNUNET_YES))
- data_size = send_core_connection_create (queue->c, size, buf);
+ data_size = send_core_connection_create (c, size, buf);
else
data_size = send_core_data_raw (queue->cls, size, buf);
break;
@@ -975,7 +975,7 @@
LOG (GNUNET_ERROR_TYPE_DEBUG, " path ack\n");
if (GCC_is_origin (c, GNUNET_NO) ||
GCC_is_origin (c, GNUNET_YES))
- data_size = send_core_connection_ack (queue->c, size, buf);
+ data_size = send_core_connection_ack (c, size, buf);
else
data_size = send_core_data_raw (queue->cls, size, buf);
break;
@@ -1143,14 +1143,21 @@
GCP_sent cont, void *cont_cls)
{
struct CadetPeerQueue *queue;
+ int error_level;
int priority;
int call_core;
- LOG (GNUNET_ERROR_TYPE_INFO,
+ if (NULL == c && GNUNET_MESSAGE_TYPE_CADET_CONNECTION_BROKEN != type)
+ error_level = GNUNET_ERROR_TYPE_ERROR;
+ else
+ error_level = GNUNET_ERROR_TYPE_INFO;
+ LOG (error_level,
"que %s (%s %u) on connection %s (%p) %s towards %s (size %u)\n",
GC_m2s (type), GC_m2s (payload_type), payload_id,
GCC_2s (c), c, GC_f2s (fwd), GCP_2s (peer), size);
+ if (error_level == GNUNET_ERROR_TYPE_ERROR)
+ GNUNET_abort ();
if (NULL == peer->connections)
{
/* We are not connected to this peer, ignore request. */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r33688 - gnunet/src/cadet,
gnunet <=