aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/cadet_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-01-02 01:22:04 +0100
committerChristian Grothoff <christian@grothoff.org>2018-01-02 01:22:04 +0100
commit18a677a335becdb59d22cc60a04253268ed2ecd6 (patch)
tree4e474339f8479c389b66a72407bafb76093fa7f8 /src/cadet/cadet_api.c
parent04ff2b8f3b3b499e56a878b2d9166f03f7610784 (diff)
downloadgnunet-18a677a335becdb59d22cc60a04253268ed2ecd6.tar.gz
gnunet-18a677a335becdb59d22cc60a04253268ed2ecd6.zip
fix issue with sending BROKEN timeouts early due to wrong timeout calculation
Diffstat (limited to 'src/cadet/cadet_api.c')
-rw-r--r--src/cadet/cadet_api.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cadet/cadet_api.c b/src/cadet/cadet_api.c
index 366e31405..497c9a4f0 100644
--- a/src/cadet/cadet_api.c
+++ b/src/cadet/cadet_api.c
@@ -391,6 +391,8 @@ destroy_channel_on_reconnect_cb (void *cls,
391 /* struct GNUNET_CADET_Handle *handle = cls; */ 391 /* struct GNUNET_CADET_Handle *handle = cls; */
392 struct GNUNET_CADET_Channel *ch = value; 392 struct GNUNET_CADET_Channel *ch = value;
393 393
394 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
395 "Destroying channel due to reconnect\n");
394 destroy_channel (ch); 396 destroy_channel (ch);
395 return GNUNET_OK; 397 return GNUNET_OK;
396} 398}
@@ -1197,6 +1199,8 @@ destroy_channel_cb (void *cls,
1197 "channel %X not destroyed\n", 1199 "channel %X not destroyed\n",
1198 ntohl (ch->ccn.channel_of_client)); 1200 ntohl (ch->ccn.channel_of_client));
1199 } 1201 }
1202 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
1203 "Destroying channel due to GNUNET_CADET_disconnect()\n");
1200 destroy_channel (ch); 1204 destroy_channel (ch);
1201 return GNUNET_OK; 1205 return GNUNET_OK;
1202} 1206}
@@ -1311,6 +1315,8 @@ GNUNET_CADET_channel_destroy (struct GNUNET_CADET_Channel *channel)
1311 GNUNET_MQ_send (h->mq, 1315 GNUNET_MQ_send (h->mq,
1312 env); 1316 env);
1313 } 1317 }
1318 GNUNET_log (GNUNET_ERROR_TYPE_INFO,
1319 "Destroying channel due to GNUNET_CADET_channel_destroy()\n");
1314 destroy_channel (channel); 1320 destroy_channel (channel);
1315} 1321}
1316 1322