aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/daemontest_post.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/daemontest_post.c')
-rw-r--r--src/daemon/daemontest_post.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/daemon/daemontest_post.c b/src/daemon/daemontest_post.c
index e7ac257a..335377e6 100644
--- a/src/daemon/daemontest_post.c
+++ b/src/daemon/daemontest_post.c
@@ -150,12 +150,12 @@ testInternalPost ()
150 curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); 150 curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA));
151 curl_easy_setopt (c, CURLOPT_POST, 1L); 151 curl_easy_setopt (c, CURLOPT_POST, 1L);
152 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); 152 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1);
153 curl_easy_setopt (c, CURLOPT_TIMEOUT, 2L); 153 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L);
154 if (oneone) 154 if (oneone)
155 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); 155 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
156 else 156 else
157 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); 157 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
158 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 2L); 158 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 15L);
159 // NOTE: use of CONNECTTIMEOUT without also 159 // NOTE: use of CONNECTTIMEOUT without also
160 // setting NOSIGNAL results in really weird 160 // setting NOSIGNAL results in really weird
161 // crashes on my system! 161 // crashes on my system!
@@ -202,12 +202,12 @@ testMultithreadedPost ()
202 curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); 202 curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA));
203 curl_easy_setopt (c, CURLOPT_POST, 1L); 203 curl_easy_setopt (c, CURLOPT_POST, 1L);
204 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); 204 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1);
205 curl_easy_setopt (c, CURLOPT_TIMEOUT, 2L); 205 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L);
206 if (oneone) 206 if (oneone)
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 else 208 else
209 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); 209 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
210 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 2L); 210 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 15L);
211 // NOTE: use of CONNECTTIMEOUT without also 211 // NOTE: use of CONNECTTIMEOUT without also
212 // setting NOSIGNAL results in really weird 212 // setting NOSIGNAL results in really weird
213 // crashes on my system! 213 // crashes on my system!
@@ -265,12 +265,12 @@ testExternalPost ()
265 curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA)); 265 curl_easy_setopt (c, CURLOPT_POSTFIELDSIZE, strlen (POST_DATA));
266 curl_easy_setopt (c, CURLOPT_POST, 1L); 266 curl_easy_setopt (c, CURLOPT_POST, 1L);
267 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1); 267 curl_easy_setopt (c, CURLOPT_FAILONERROR, 1);
268 curl_easy_setopt (c, CURLOPT_TIMEOUT, 5L); 268 curl_easy_setopt (c, CURLOPT_TIMEOUT, 150L);
269 if (oneone) 269 if (oneone)
270 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); 270 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
271 else 271 else
272 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0); 272 curl_easy_setopt (c, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_0);
273 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 5L); 273 curl_easy_setopt (c, CURLOPT_CONNECTTIMEOUT, 15L);
274 // NOTE: use of CONNECTTIMEOUT without also 274 // NOTE: use of CONNECTTIMEOUT without also
275 // setting NOSIGNAL results in really weird 275 // setting NOSIGNAL results in really weird
276 // crashes on my system! 276 // crashes on my system!