aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_http_client.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2012-08-27 12:08:05 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2012-08-27 12:08:05 +0000
commit19dcec611772b0db1b4a9439a8f6124982a0a6cf (patch)
treebb1288d4912711c76c8ab572252bacec2e8737ba /src/transport/plugin_transport_http_client.c
parent1d18c4dbc82dfa442933148a171d37546ec41332 (diff)
downloadgnunet-19dcec611772b0db1b4a9439a8f6124982a0a6cf.tar.gz
gnunet-19dcec611772b0db1b4a9439a8f6124982a0a6cf.zip
code
Diffstat (limited to 'src/transport/plugin_transport_http_client.c')
-rw-r--r--src/transport/plugin_transport_http_client.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/transport/plugin_transport_http_client.c b/src/transport/plugin_transport_http_client.c
index 5fbf3592d..b04c3f47a 100644
--- a/src/transport/plugin_transport_http_client.c
+++ b/src/transport/plugin_transport_http_client.c
@@ -720,7 +720,6 @@ client_disconnect (struct Session *s)
720static void 720static void
721client_run (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) 721client_run (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc)
722{ 722{
723 GNUNET_break (0);
724 struct HTTP_Client_Plugin *plugin = cls; 723 struct HTTP_Client_Plugin *plugin = cls;
725 int running; 724 int running;
726 CURLMcode mret; 725 CURLMcode mret;
@@ -804,11 +803,11 @@ client_connect (struct Session *s)
804 return GNUNET_SYSERR; 803 return GNUNET_SYSERR;
805 } 804 }
806 805
807 GNUNET_asprintf (&url, "%s%s;%u", 806 GNUNET_asprintf (&url, "%s/%s;%u",
808 http_common_plugin_address_to_string (plugin, s->addr, s->addrlen), 807 http_common_plugin_address_to_string (plugin, s->addr, s->addrlen),
809 GNUNET_h2s_full (&plugin->env->my_identity->hashPubKey), 808 GNUNET_h2s_full (&plugin->env->my_identity->hashPubKey),
810 plugin->last_tag); 809 plugin->last_tag);
811 810 plugin->last_tag++;
812 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name, 811 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name,
813 "Initiating outbound session peer `%s' using address `%s'\n", 812 "Initiating outbound session peer `%s' using address `%s'\n",
814 GNUNET_i2s (&s->target), url); 813 GNUNET_i2s (&s->target), url);
@@ -1051,7 +1050,6 @@ client_start_session_timeout (struct Session *s)
1051 GNUNET_log (TIMEOUT_LOG, 1050 GNUNET_log (TIMEOUT_LOG,
1052 "Timeout for session %p set to %llu ms\n", 1051 "Timeout for session %p set to %llu ms\n",
1053 s, (unsigned long long) TIMEOUT.rel_value); 1052 s, (unsigned long long) TIMEOUT.rel_value);
1054 GNUNET_break (0);
1055} 1053}
1056 1054
1057/** 1055/**
@@ -1071,7 +1069,6 @@ client_reschedule_session_timeout (struct Session *s)
1071 GNUNET_log (TIMEOUT_LOG, 1069 GNUNET_log (TIMEOUT_LOG,
1072 "Timeout rescheduled for session %p set to %llu ms\n", 1070 "Timeout rescheduled for session %p set to %llu ms\n",
1073 s, (unsigned long long) TIMEOUT.rel_value); 1071 s, (unsigned long long) TIMEOUT.rel_value);
1074 GNUNET_break (0);
1075} 1072}
1076 1073
1077/** 1074/**
@@ -1201,6 +1198,7 @@ LIBGNUNET_PLUGIN_TRANSPORT_INIT (void *cls)
1201 plugin->name = "transport-http_client"; 1198 plugin->name = "transport-http_client";
1202 plugin->protocol = "http"; 1199 plugin->protocol = "http";
1203#endif 1200#endif
1201 plugin->last_tag = 1;
1204 1202
1205 if (GNUNET_SYSERR == client_configure_plugin (plugin)) 1203 if (GNUNET_SYSERR == client_configure_plugin (plugin))
1206 { 1204 {