- set initially number of tcp sessions to 0
authorMatthias Wachs <wachs@net.in.tum.de>
Mon, 2 Apr 2012 09:27:26 +0000 (09:27 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Mon, 2 Apr 2012 09:27:26 +0000 (09:27 +0000)
src/transport/plugin_transport_tcp.c

index 1850c3fdac458afe51ef6ed9d33b036ddb1a50fb..95041d89929737f5f066d1b1ae4174fd7a146c30 100644 (file)
@@ -2195,6 +2195,10 @@ libgnunet_plugin_transport_tcp_init (void *cls)
                      _
                      ("TCP transport advertises itself as being on port %llu\n"),
                      aport);
+  /* Initially set connections to 0 */
+  GNUNET_STATISTICS_set(plugin->env->stats,
+                        gettext_noop ("# TCP sessions active"), 0,
+                        GNUNET_NO);
   return api;
 }