commit 8a1d84e0cc73bc8ecae86559529b33f9f00737f0
parent 841429d40c6904ee8cd61066a5aa976ab7e3e9b4
Author: Shichao <mrrr61@outlook.com>
Date: Sun, 2 Jun 2024 19:55:58 +0800
http3: Correct the value of statistics value # connections active
Diffstat:
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/service/transport/gnunet-communicator-http3.c b/src/service/transport/gnunet-communicator-http3.c
@@ -1379,14 +1379,15 @@ mq_init (void *cls,
connection->timeout =
GNUNET_TIME_relative_to_absolute (GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT);
connection->streams = GNUNET_CONTAINER_multihashmap_create (10, GNUNET_NO);
- GNUNET_STATISTICS_set (stats,
- "# connections active",
- GNUNET_CONTAINER_multihashmap_size (addr_map),
- GNUNET_NO);
GNUNET_CONTAINER_multihashmap_put (addr_map,
&remote_addr_key,
connection,
GNUNET_CONTAINER_MULTIHASHMAPOPTION_UNIQUE_ONLY);
+ GNUNET_STATISTICS_set (stats,
+ "# connections active",
+ GNUNET_CONTAINER_multihashmap_size (addr_map),
+ GNUNET_NO);
+
/* client_gnutls_init */
rv = client_gnutls_init (connection);
if (GNUNET_NO != rv)