aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/daemontest_long_header.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/daemontest_long_header.c')
-rw-r--r--src/testcurl/daemontest_long_header.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/testcurl/daemontest_long_header.c b/src/testcurl/daemontest_long_header.c
index 23823411..98dcc812 100644
--- a/src/testcurl/daemontest_long_header.c
+++ b/src/testcurl/daemontest_long_header.c
@@ -107,7 +107,7 @@ testLongUrlGet ()
107 &ahc_echo, 107 &ahc_echo,
108 "GET", 108 "GET",
109 MHD_OPTION_CONNECTION_MEMORY_LIMIT, 109 MHD_OPTION_CONNECTION_MEMORY_LIMIT,
110 VERY_LONG / 2, MHD_OPTION_END); 110 (size_t) (VERY_LONG / 2), MHD_OPTION_END);
111 if (d == NULL) 111 if (d == NULL)
112 return 1; 112 return 1;
113 c = curl_easy_init (); 113 c = curl_easy_init ();
@@ -125,9 +125,9 @@ testLongUrlGet ()
125 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); 125 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
126 else 126 else
127 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); 127 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
128 // NOTE: use of CONNECTTIMEOUT without also 128 /* NOTE: use of CONNECTTIMEOUT without also
129 // setting NOSIGNAL results in really weird 129 setting NOSIGNAL results in really weird
130 // crashes on my system! 130 crashes on my system! */
131 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); 131 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1);
132 if (CURLE_OK == curl_easy_perform (c)) 132 if (CURLE_OK == curl_easy_perform (c))
133 { 133 {
@@ -173,7 +173,7 @@ testLongHeaderGet ()
173 &ahc_echo, 173 &ahc_echo,
174 "GET", 174 "GET",
175 MHD_OPTION_CONNECTION_MEMORY_LIMIT, 175 MHD_OPTION_CONNECTION_MEMORY_LIMIT,
176 VERY_LONG / 2, MHD_OPTION_END); 176 (size_t) (VERY_LONG / 2), MHD_OPTION_END);
177 if (d == NULL) 177 if (d == NULL)
178 return 16; 178 return 16;
179 c = curl_easy_init (); 179 c = curl_easy_init ();
@@ -195,9 +195,9 @@ testLongHeaderGet ()
195 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); 195 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
196 else 196 else
197 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); 197 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
198 // NOTE: use of CONNECTTIMEOUT without also 198 /* NOTE: use of CONNECTTIMEOUT without also
199 // setting NOSIGNAL results in really weird 199 setting NOSIGNAL results in really weird
200 // crashes on my system! 200 crashes on my system! */
201 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); 201 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1);
202 if (CURLE_OK == curl_easy_perform (c)) 202 if (CURLE_OK == curl_easy_perform (c))
203 { 203 {