[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r33923 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r33923 - gnunet/src/transport |
Date: |
Fri, 4 Jul 2014 12:50:33 +0200 |
Author: wachs
Date: 2014-07-04 12:50:33 +0200 (Fri, 04 Jul 2014)
New Revision: 33923
Modified:
gnunet/src/transport/plugin_transport_http_client.c
Log:
fix statistics for reuqests
Modified: gnunet/src/transport/plugin_transport_http_client.c
===================================================================
--- gnunet/src/transport/plugin_transport_http_client.c 2014-07-03 22:57:31 UTC
(rev 33922)
+++ gnunet/src/transport/plugin_transport_http_client.c 2014-07-04 10:50:33 UTC
(rev 33923)
@@ -471,6 +471,8 @@
s->put.easyhandle);
GNUNET_break (CURLM_OK == mret);
curl_easy_cleanup (s->put.easyhandle);
+ GNUNET_assert (plugin->cur_requests > 0);
+ plugin->cur_requests--;
s->put.easyhandle = NULL;
}
if (NULL != s->get.easyhandle)
@@ -488,6 +490,7 @@
plugin->cur_requests--;
s->get.easyhandle = NULL;
}
+
GNUNET_STATISTICS_set (plugin->env->stats,
HTTP_STAT_STR_CONNECTIONS,
plugin->cur_requests,
@@ -1318,7 +1321,6 @@
GNUNET_break (CURLE_OK == curl_easy_getinfo (easy_h,
CURLINFO_RESPONSE_CODE, &http_statuscode));
-
if (easy_h == s->put.easyhandle)
put_request = GNUNET_YES;
else
@@ -1414,6 +1416,11 @@
}
else
GNUNET_break (0); /* Must not happen */
+
+ GNUNET_STATISTICS_set (plugin->env->stats,
+ HTTP_STAT_STR_CONNECTIONS,
+ plugin->cur_requests,
+ GNUNET_NO);
}
}
while (mret == CURLM_CALL_MULTI_PERFORM);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r33923 - gnunet/src/transport,
gnunet <=