aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_client.c
diff options
context:
space:
mode:
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);