diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-02-28 16:27:05 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-02-28 16:27:05 +0000 |
commit | 6778df25761e1dd63cea97c27ae713079e061f1d (patch) | |
tree | a668de5eda69778b96a9ca641176a61ab638c5ce /src/transport/plugin_transport_tcp.c | |
parent | de30f210414a1f1f296c0cfb4406b171c1fc7b62 (diff) | |
download | gnunet-6778df25761e1dd63cea97c27ae713079e061f1d.tar.gz gnunet-6778df25761e1dd63cea97c27ae713079e061f1d.zip |
-count total TCP handshakes
Diffstat (limited to 'src/transport/plugin_transport_tcp.c')
-rw-r--r-- | src/transport/plugin_transport_tcp.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index 5fdffd927..071c08374 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c | |||
@@ -2533,9 +2533,13 @@ connect_notify (void *cls, | |||
2533 | 2533 | ||
2534 | plugin->cur_connections++; | 2534 | plugin->cur_connections++; |
2535 | GNUNET_STATISTICS_set (plugin->env->stats, | 2535 | GNUNET_STATISTICS_set (plugin->env->stats, |
2536 | gettext_noop ("# TCP server connections"), | 2536 | gettext_noop ("# TCP server connections active"), |
2537 | plugin->cur_connections, | 2537 | plugin->cur_connections, |
2538 | GNUNET_NO); | 2538 | GNUNET_NO); |
2539 | GNUNET_STATISTICS_update (plugin->env->stats, | ||
2540 | gettext_noop ("# TCP server connect events"), | ||
2541 | 1, | ||
2542 | GNUNET_NO); | ||
2539 | if (plugin->cur_connections != plugin->max_connections) | 2543 | if (plugin->cur_connections != plugin->max_connections) |
2540 | return; | 2544 | return; |
2541 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 2545 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
@@ -2586,7 +2590,7 @@ disconnect_notify (void *cls, | |||
2586 | GNUNET_assert (plugin->cur_connections >= 1); | 2590 | GNUNET_assert (plugin->cur_connections >= 1); |
2587 | plugin->cur_connections--; | 2591 | plugin->cur_connections--; |
2588 | GNUNET_STATISTICS_set (plugin->env->stats, | 2592 | GNUNET_STATISTICS_set (plugin->env->stats, |
2589 | gettext_noop ("# TCP server connections"), | 2593 | gettext_noop ("# TCP server connections active"), |
2590 | plugin->cur_connections, | 2594 | plugin->cur_connections, |
2591 | GNUNET_NO); | 2595 | GNUNET_NO); |
2592 | GNUNET_STATISTICS_update (session->plugin->env->stats, | 2596 | GNUNET_STATISTICS_update (session->plugin->env->stats, |