aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_client.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2014-06-09 22:04:11 +0000
committerChristian Grothoff <christian@grothoff.org>2014-06-09 22:04:11 +0000
commit1dd22b0d681848af9980e5202e38b1a307cf2094 (patch)
treee013a7f735f2e967222890d87136bd5b76c1f803 /src/transport/plugin_transport_http_client.c
parentc9f75566447fd3a9c5c304dbc8e31fd68b6aa3ed (diff)
downloadgnunet-1dd22b0d681848af9980e5202e38b1a307cf2094.tar.gz
gnunet-1dd22b0d681848af9980e5202e38b1a307cf2094.zip
clarify prettyprinter API and protocols, make sure implementations are consistent in their implemenation, doxygen fixes, indentation fixes, subtle semantic fixes
Diffstat (limited to 'src/transport/plugin_transport_http_client.c')
-rw-r--r--src/transport/plugin_transport_http_client.c25
1 files changed, 15 insertions, 10 deletions
diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c
index 15150b3dc..d853cc7f7 100644
--- a/src/transport/plugin_transport_http_client.c
+++ b/src/transport/plugin_transport_http_client.c
@@ -1190,20 +1190,25 @@ client_run (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
1190 { 1190 {
1191 if ((0 != msg->data.result) || (http_statuscode != 200)) 1191 if ((0 != msg->data.result) || (http_statuscode != 200))
1192 { 1192 {
1193 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name, 1193 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG,
1194 "Session %p/connection %p: PUT connection to `%s' ended with status %i reason %i: `%s'\n", 1194 plugin->name,
1195 s, msg->easy_handle, GNUNET_i2s (&s->target), 1195 "Session %p/connection %p: PUT connection to `%s' ended with status %i reason %i: `%s'\n",
1196 http_statuscode, 1196 s, msg->easy_handle,
1197 msg->data.result, 1197 GNUNET_i2s (&s->target),
1198 curl_easy_strerror (msg->data.result)); 1198 http_statuscode,
1199 msg->data.result,
1200 curl_easy_strerror (msg->data.result));
1199 } 1201 }
1200 else 1202 else
1201 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name, 1203 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG,
1202 "Session %p/connection %p: PUT connection to `%s' ended normal\n", 1204 plugin->name,
1203 s, msg->easy_handle, GNUNET_i2s (&s->target)); 1205 "Session %p/connection %p: PUT connection to `%s' ended normal\n",
1204 if (s->client_get == NULL) 1206 s, msg->easy_handle,
1207 GNUNET_i2s (&s->target));
1208 if (NULL == s->client_get)
1205 { 1209 {
1206 /* Disconnect other transmission direction and tell transport */ 1210 /* Disconnect other transmission direction and tell transport */
1211 /* FIXME? */
1207 } 1212 }
1208 curl_multi_remove_handle (plugin->curl_multi_handle, easy_h); 1213 curl_multi_remove_handle (plugin->curl_multi_handle, easy_h);
1209 curl_easy_cleanup (easy_h); 1214 curl_easy_cleanup (easy_h);