aboutsummaryrefslogtreecommitdiff
path: root/src/testzzuf/test_put_chunked.c
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-10-31 15:20:39 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-10-31 15:20:39 +0300
commitd1d4e15a97932b0122eb0c4a6d54453269c85792 (patch)
tree2608f823b884915f9900e499b627dfd329ea38c3 /src/testzzuf/test_put_chunked.c
parent424abcd21daf7000fa826a03de6188ea608a50ec (diff)
downloadlibmicrohttpd-d1d4e15a97932b0122eb0c4a6d54453269c85792.tar.gz
libmicrohttpd-d1d4e15a97932b0122eb0c4a6d54453269c85792.zip
Stick to C89 standard for a while
Diffstat (limited to 'src/testzzuf/test_put_chunked.c')
-rw-r--r--src/testzzuf/test_put_chunked.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/testzzuf/test_put_chunked.c b/src/testzzuf/test_put_chunked.c
index 87d7f7e8..72a9f316 100644
--- a/src/testzzuf/test_put_chunked.c
+++ b/src/testzzuf/test_put_chunked.c
@@ -151,17 +151,17 @@ testInternalPut ()
151 curl_easy_setopt (c, CURLOPT_READFUNCTION, &putBuffer); 151 curl_easy_setopt (c, CURLOPT_READFUNCTION, &putBuffer);
152 curl_easy_setopt (c, CURLOPT_READDATA, &pos); 152 curl_easy_setopt (c, CURLOPT_READDATA, &pos);
153 curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); 153 curl_easy_setopt (c, CURLOPT_UPLOAD, 1L);
154 /* by not giving the file size, we force chunking! */
154 /* 155 /*
155 // by not giving the file size, we force chunking!
156 curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); 156 curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L);
157 */ 157 */
158 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); 158 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1);
159 curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); 159 curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT);
160 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); 160 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
161 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); 161 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT);
162 // NOTE: use of CONNECTTIMEOUT without also 162 /* NOTE: use of CONNECTTIMEOUT without also
163 // setting NOSIGNAL results in really weird 163 * setting NOSIGNAL results in really weird
164 // crashes on my system! 164 * crashes on my system! */
165 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); 165 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1);
166 curl_easy_perform (c); 166 curl_easy_perform (c);
167 curl_easy_cleanup (c); 167 curl_easy_cleanup (c);
@@ -198,17 +198,17 @@ testMultithreadedPut ()
198 curl_easy_setopt (c, CURLOPT_READFUNCTION, &putBuffer); 198 curl_easy_setopt (c, CURLOPT_READFUNCTION, &putBuffer);
199 curl_easy_setopt (c, CURLOPT_READDATA, &pos); 199 curl_easy_setopt (c, CURLOPT_READDATA, &pos);
200 curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); 200 curl_easy_setopt (c, CURLOPT_UPLOAD, 1L);
201 /* by not giving the file size, we force chunking! */
201 /* 202 /*
202 // by not giving the file size, we force chunking!
203 curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); 203 curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L);
204 */ 204 */
205 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); 205 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1);
206 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L); 206 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L);
207 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); 207 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
208 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 15L); 208 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 15L);
209 // NOTE: use of CONNECTTIMEOUT without also 209 /* NOTE: use of CONNECTTIMEOUT without also
210 // setting NOSIGNAL results in really weird 210 * setting NOSIGNAL results in really weird
211 // crashes on my system! 211 * crashes on my system! */
212 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); 212 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1);
213 if (CURLE_OK != (errornum = curl_easy_perform (c))) 213 if (CURLE_OK != (errornum = curl_easy_perform (c)))
214 { 214 {
@@ -277,17 +277,17 @@ testExternalPut ()
277 curl_easy_setopt (c, CURLOPT_READFUNCTION, &putBuffer); 277 curl_easy_setopt (c, CURLOPT_READFUNCTION, &putBuffer);
278 curl_easy_setopt (c, CURLOPT_READDATA, &pos); 278 curl_easy_setopt (c, CURLOPT_READDATA, &pos);
279 curl_easy_setopt (c, CURLOPT_UPLOAD, 1L); 279 curl_easy_setopt (c, CURLOPT_UPLOAD, 1L);
280 /* by not giving the file size, we force chunking! */
280 /* 281 /*
281 // by not giving the file size, we force chunking!
282 curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L); 282 curl_easy_setopt (c, CURLOPT_INFILESIZE_LARGE, (curl_off_t) 8L);
283 */ 283 */
284 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); 284 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1);
285 curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT); 285 curl_easy_setopt (c, CURLOPT_TIMEOUT_MS, CURL_TIMEOUT);
286 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); 286 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
287 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT); 287 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT_MS, CURL_TIMEOUT);
288 // NOTE: use of CONNECTTIMEOUT without also 288 /* NOTE: use of CONNECTTIMEOUT without also
289 // setting NOSIGNAL results in really weird 289 * setting NOSIGNAL results in really weird
290 // crashes on my system! 290 * crashes on my system! */
291 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); 291 curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1);
292 292
293 293