[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r33892 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r33892 - gnunet/src/transport |
Date: |
Wed, 2 Jul 2014 09:39:27 +0200 |
Author: wachs
Date: 2014-07-02 09:39:27 +0200 (Wed, 02 Jul 2014)
New Revision: 33892
Modified:
gnunet/src/transport/plugin_transport_http_client.c
Log:
tracking down connection exceeded issue
Modified: gnunet/src/transport/plugin_transport_http_client.c
===================================================================
--- gnunet/src/transport/plugin_transport_http_client.c 2014-07-01 23:12:33 UTC
(rev 33891)
+++ gnunet/src/transport/plugin_transport_http_client.c 2014-07-02 07:39:27 UTC
(rev 33892)
@@ -553,7 +553,7 @@
mret = curl_multi_fdset (plugin->curl_multi_handle, &rs, &ws, &es, &max);
if (mret != CURLM_OK)
{
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR, _("%s failed at %s:%d: `%s'\n"),
+ LOG (GNUNET_ERROR_TYPE_ERROR, _("%s failed at %s:%d: `%s'\n"),
"curl_multi_fdset", __FILE__, __LINE__,
curl_multi_strerror (mret));
return GNUNET_SYSERR;
@@ -568,7 +568,7 @@
if (mret != CURLM_OK)
{
- GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ LOG (GNUNET_ERROR_TYPE_ERROR,
_("%s failed at %s:%d: `%s'\n"),
"curl_multi_timeout", __FILE__, __LINE__,
curl_multi_strerror (mret));
@@ -1319,6 +1319,9 @@
curl_easy_cleanup (easy_h);
GNUNET_assert (plugin->cur_connections > 0);
plugin->cur_connections--;
+ LOG (GNUNET_ERROR_TYPE_INFO,
+ "PUT request done, number of connections decreased to %u\n",
+ plugin->cur_connections);
s->put_tmp_disconnecting = GNUNET_NO;
s->put_tmp_disconnected = GNUNET_YES;
s->put.easyhandle = NULL;
@@ -1366,6 +1369,9 @@
/* FIXME: who calls curl_multi_remove on 'easy_h' now!? */
GNUNET_assert (plugin->cur_connections > 0);
plugin->cur_connections--;
+ LOG (GNUNET_ERROR_TYPE_INFO,
+ "GET request done, number of connections decreased to %u\n",
+ plugin->cur_connections);
/* If we are emulating an XHR client we need to make another GET
* request.
*/
@@ -1487,6 +1493,9 @@
return GNUNET_SYSERR;
}
s->plugin->cur_connections++;
+ LOG (GNUNET_ERROR_TYPE_INFO,
+ "GET request `%s' established, number of connections increased to %u\n",
+ s->url, s->plugin->cur_connections);
return GNUNET_OK;
}
@@ -1586,7 +1595,9 @@
}
s->put_tmp_disconnected = GNUNET_NO;
s->plugin->cur_connections++;
-
+ LOG (GNUNET_ERROR_TYPE_INFO,
+ "PUT request `%s' established, number of connections increased to %u\n",
+ s->url, s->plugin->cur_connections);
return GNUNET_OK;
}
@@ -1730,6 +1741,7 @@
if (NULL != s)
return s;
+ /* create a new session */
if (plugin->max_connections <= plugin->cur_connections)
{
LOG (GNUNET_ERROR_TYPE_WARNING,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r33892 - gnunet/src/transport,
gnunet <=