aboutsummaryrefslogtreecommitdiff
path: root/src/transport
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-07-07 08:37:36 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-07-07 08:37:36 +0000
commita791617389944022e07adff928442d6094d167f3 (patch)
treee7bad024820a31054efe56bdb6945417d79af5ea /src/transport
parentd02bf95f09d87c465e2ce159bce0e9779d1d42b9 (diff)
downloadgnunet-a791617389944022e07adff928442d6094d167f3.tar.gz
gnunet-a791617389944022e07adff928442d6094d167f3.zip
ats updates & peer disconnects
Diffstat (limited to 'src/transport')
-rw-r--r--src/transport/gnunet-service-transport.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c
index a8b2dcaeb..5f369c73f 100644
--- a/src/transport/gnunet-service-transport.c
+++ b/src/transport/gnunet-service-transport.c
@@ -2430,6 +2430,8 @@ plugin_env_session_end (void *cls,
2430 } 2430 }
2431 GNUNET_free_non_null(pos->ressources); 2431 GNUNET_free_non_null(pos->ressources);
2432 GNUNET_free_non_null(pos->quality); 2432 GNUNET_free_non_null(pos->quality);
2433 if (ats != NULL)
2434 ats->stat.recreate_problem = GNUNET_YES;
2433 if (GNUNET_YES != pos->connected) 2435 if (GNUNET_YES != pos->connected)
2434 { 2436 {
2435 /* nothing else to do, connection was never up... */ 2437 /* nothing else to do, connection was never up... */
@@ -2437,8 +2439,7 @@ plugin_env_session_end (void *cls,
2437 return; 2439 return;
2438 } 2440 }
2439 GNUNET_free (pos); 2441 GNUNET_free (pos);
2440 if (ats != NULL) 2442
2441 ats->stat.recreate_problem = GNUNET_YES;
2442 if (nl->received_pong == GNUNET_NO) 2443 if (nl->received_pong == GNUNET_NO)
2443 { 2444 {
2444 GNUNET_STATISTICS_update (stats, 2445 GNUNET_STATISTICS_update (stats,
@@ -4816,6 +4817,9 @@ disconnect_neighbour (struct NeighbourList *n, int check)
4816 if (GNUNET_YES == n->received_pong) 4817 if (GNUNET_YES == n->received_pong)
4817 notify_clients_disconnect (&n->id); 4818 notify_clients_disconnect (&n->id);
4818 4819
4820 if (ats != NULL)
4821 ats->stat.recreate_problem = GNUNET_YES;
4822
4819 /* clean up all plugins, cancel connections and pending transmissions */ 4823 /* clean up all plugins, cancel connections and pending transmissions */
4820 while (NULL != (rpos = n->plugins)) 4824 while (NULL != (rpos = n->plugins))
4821 { 4825 {
@@ -4845,8 +4849,6 @@ disconnect_neighbour (struct NeighbourList *n, int check)
4845 GNUNET_free(peer_pos->quality); 4849 GNUNET_free(peer_pos->quality);
4846 peer_pos->ressources = NULL; 4850 peer_pos->ressources = NULL;
4847 GNUNET_free(peer_pos); 4851 GNUNET_free(peer_pos);
4848 if (ats != NULL)
4849 ats->stat.recreate_problem = GNUNET_YES;
4850 } 4852 }
4851 GNUNET_free (rpos); 4853 GNUNET_free (rpos);
4852 } 4854 }