aboutsummaryrefslogtreecommitdiff
path: root/src/gns/test_gns_proxy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gns/test_gns_proxy.c')
-rw-r--r--src/gns/test_gns_proxy.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/gns/test_gns_proxy.c b/src/gns/test_gns_proxy.c
index 75fe95617..2a7f8104b 100644
--- a/src/gns/test_gns_proxy.c
+++ b/src/gns/test_gns_proxy.c
@@ -11,7 +11,7 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 17
@@ -50,9 +50,9 @@ static int global_ret;
50 50
51static struct MHD_Daemon *mhd; 51static struct MHD_Daemon *mhd;
52 52
53static struct GNUNET_SCHEDULER_Task * mhd_task_id; 53static struct GNUNET_SCHEDULER_Task *mhd_task_id;
54 54
55static struct GNUNET_SCHEDULER_Task * curl_task_id; 55static struct GNUNET_SCHEDULER_Task *curl_task_id;
56 56
57static CURL *curl; 57static CURL *curl;
58 58
@@ -349,6 +349,7 @@ curl_main ()
349static void 349static void
350start_curl (void *cls) 350start_curl (void *cls)
351{ 351{
352 curl_task_id = NULL;
352 GNUNET_asprintf (&url, 353 GNUNET_asprintf (&url,
353 "https://%s:%d/hello_world", 354 "https://%s:%d/hello_world",
354 TEST_DOMAIN, port); 355 TEST_DOMAIN, port);
@@ -369,7 +370,9 @@ start_curl (void *cls)
369 multi = curl_multi_init (); 370 multi = curl_multi_init ();
370 GNUNET_assert (multi != NULL); 371 GNUNET_assert (multi != NULL);
371 GNUNET_assert (CURLM_OK == curl_multi_add_handle (multi, curl)); 372 GNUNET_assert (CURLM_OK == curl_multi_add_handle (multi, curl));
372 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Beginning HTTP download from `%s'\n", url); 373 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
374 "Beginning HTTP download from `%s'\n",
375 url);
373 curl_main (); 376 curl_main ();
374} 377}
375 378
@@ -391,7 +394,8 @@ commence_testing (void *cls)
391{ 394{
392 curl_task_id = 395 curl_task_id =
393 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS, 396 GNUNET_SCHEDULER_add_delayed (GNUNET_TIME_UNIT_SECONDS,
394 &start_curl, NULL); 397 &start_curl,
398 NULL);
395} 399}
396 400
397 401
@@ -561,4 +565,4 @@ main (int argc, char *const *argv)
561 return global_ret; 565 return global_ret;
562} 566}
563 567
564/* end of test_gns_vpn.c */ 568/* end of test_gns_proxy.c */