fix
authorChristian Grothoff <christian@grothoff.org>
Mon, 19 Jul 2010 13:00:34 +0000 (13:00 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 19 Jul 2010 13:00:34 +0000 (13:00 +0000)
TODO
src/core/gnunet-service-core.c

diff --git a/TODO b/TODO
index 012987b94237582b276cc78d56500d8aee4c61da..747548f232b83d0e975831740fc3db882eea1e59 100644 (file)
--- a/TODO
+++ b/TODO
@@ -16,6 +16,8 @@
     => may have been fixed with instant-notification of disconnect
        to core on session-oriented connection hick-up; not perfect but
        likely good enough until we get ATS going; still should be tested...
+    => "peers connected (transport)" now instantly goes to ZERO (core statistic),
+       but "established sessions" stays up...
   - derived key generation [Nils]
 * DHT: [Nate]
   - implement DHT service 
index 52724e57870c35eef621310b08691d971bcc2168..0770fb78a02e8fca13035c3669e172f298f71624 100644 (file)
@@ -3745,10 +3745,12 @@ handle_transport_notify_disconnect (void *cls,
   if (n->dead_clean_task != GNUNET_SCHEDULER_NO_TASK)
     GNUNET_SCHEDULER_cancel (sched,
                             n->dead_clean_task);
-  left = GNUNET_CONSTANTS_DISCONNECT_SESSION_TIMEOUT;
-  n->last_activity = GNUNET_TIME_absolute_subtract (GNUNET_TIME_absolute_get (), left);
+  left = GNUNET_TIME_relative_subtract (GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT,
+                                       GNUNET_CONSTANTS_DISCONNECT_SESSION_TIMEOUT);
+  n->last_activity = GNUNET_TIME_absolute_subtract (GNUNET_TIME_absolute_get (), 
+                                                   left);
   n->dead_clean_task = GNUNET_SCHEDULER_add_delayed (sched,
-                                                    left,
+                                                    GNUNET_CONSTANTS_DISCONNECT_SESSION_TIMEOUT,
                                                     &consider_free_task,
                                                     n);
 }