diff options
author | Bart Polot <bart@net.in.tum.de> | 2014-06-24 23:29:50 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2014-06-24 23:29:50 +0000 |
commit | 564d7a1387b563912bd928b495d42d0448aebf88 (patch) | |
tree | 72557c54cdc8a47da15c20267545683107c13c51 /src | |
parent | 9046d2649944100138413c3d416cf09afdc5c8d3 (diff) | |
download | gnunet-564d7a1387b563912bd928b495d42d0448aebf88.tar.gz gnunet-564d7a1387b563912bd928b495d42d0448aebf88.zip |
- debug info for #3425
Diffstat (limited to 'src')
-rw-r--r-- | src/cadet/gnunet-service-cadet_tunnel.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/cadet/gnunet-service-cadet_tunnel.c b/src/cadet/gnunet-service-cadet_tunnel.c index b254add83..ac24ecfaf 100644 --- a/src/cadet/gnunet-service-cadet_tunnel.c +++ b/src/cadet/gnunet-service-cadet_tunnel.c | |||
@@ -2476,9 +2476,10 @@ GCT_destroy_empty (struct CadetTunnel *t) | |||
2476 | 2476 | ||
2477 | if (GNUNET_SCHEDULER_NO_TASK != t->destroy_task) | 2477 | if (GNUNET_SCHEDULER_NO_TASK != t->destroy_task) |
2478 | { | 2478 | { |
2479 | LOG (GNUNET_ERROR_TYPE_DEBUG, | 2479 | LOG (GNUNET_ERROR_TYPE_WARNING, |
2480 | "Tunnel %s is already scheduled for destruction\n", | 2480 | "Tunnel %s is already scheduled for destruction. Tunnel debug dump:\n", |
2481 | GCT_2s (t)); | 2481 | GCT_2s (t)); |
2482 | GCT_debug (t, GNUNET_ERROR_TYPE_WARNING); | ||
2482 | GNUNET_break (0); | 2483 | GNUNET_break (0); |
2483 | /* should never happen, tunnel can only become empty once, and the | 2484 | /* should never happen, tunnel can only become empty once, and the |
2484 | * task identifier should be NO_TASK (cleaned when the tunnel was created | 2485 | * task identifier should be NO_TASK (cleaned when the tunnel was created |
@@ -2490,6 +2491,7 @@ GCT_destroy_empty (struct CadetTunnel *t) | |||
2490 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Tunnel %s empty: destroying scheduled\n", | 2491 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Tunnel %s empty: destroying scheduled\n", |
2491 | GCT_2s (t)); | 2492 | GCT_2s (t)); |
2492 | 2493 | ||
2494 | // FIXME make delay a config option | ||
2493 | t->destroy_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MINUTES, | 2495 | t->destroy_task = GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_MINUTES, |
2494 | &delayed_destroy, t); | 2496 | &delayed_destroy, t); |
2495 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Scheduled destroy of %p as %llX\n", | 2497 | LOG (GNUNET_ERROR_TYPE_DEBUG, "Scheduled destroy of %p as %llX\n", |