diff options
Diffstat (limited to 'src/testzzuf/daemontest_long_header.c')
-rw-r--r-- | src/testzzuf/daemontest_long_header.c | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/testzzuf/daemontest_long_header.c b/src/testzzuf/daemontest_long_header.c index 42bd1114..ebd2ff36 100644 --- a/src/testzzuf/daemontest_long_header.c +++ b/src/testzzuf/daemontest_long_header.c | |||
@@ -38,16 +38,6 @@ | |||
38 | #include "socat.c" | 38 | #include "socat.c" |
39 | 39 | ||
40 | /** | 40 | /** |
41 | * A larger loop count will run more random tests -- | ||
42 | * which would be good, except that it may take too | ||
43 | * long for most user's patience. So this small | ||
44 | * value is the default. | ||
45 | */ | ||
46 | #define LOOP_COUNT 10 | ||
47 | |||
48 | #define CURL_TIMEOUT 50L | ||
49 | |||
50 | /** | ||
51 | * We will set the memory available per connection to | 41 | * We will set the memory available per connection to |
52 | * half of this value, so the actual value does not have | 42 | * half of this value, so the actual value does not have |
53 | * to be big at all... | 43 | * to be big at all... |
@@ -186,14 +176,12 @@ testLongHeaderGet () | |||
186 | for (i = 0; i < LOOP_COUNT; i++) | 176 | for (i = 0; i < LOOP_COUNT; i++) |
187 | { | 177 | { |
188 | fprintf (stderr, "."); | 178 | fprintf (stderr, "."); |
189 | |||
190 | |||
191 | c = curl_easy_init (); | 179 | c = curl_easy_init (); |
192 | url = malloc (VERY_LONG); | 180 | url = malloc (VERY_LONG); |
193 | memset (url, 'a', VERY_LONG); | 181 | memset (url, 'a', VERY_LONG); |
194 | url[VERY_LONG - 1] = '\0'; | 182 | url[VERY_LONG - 1] = '\0'; |
195 | url[VERY_LONG / 2] = ':'; | 183 | url[VERY_LONG / 2] = ':'; |
196 | url[VERY_LONG / 2 + 1] = ':'; | 184 | url[VERY_LONG / 2 + 1] = ' '; |
197 | header = curl_slist_append (header, url); | 185 | header = curl_slist_append (header, url); |
198 | 186 | ||
199 | curl_easy_setopt (c, CURLOPT_HTTPHEADER, header); | 187 | curl_easy_setopt (c, CURLOPT_HTTPHEADER, header); |
@@ -213,6 +201,7 @@ testLongHeaderGet () | |||
213 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 201 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
214 | curl_easy_perform (c); | 202 | curl_easy_perform (c); |
215 | curl_slist_free_all (header); | 203 | curl_slist_free_all (header); |
204 | header = NULL; | ||
216 | curl_easy_cleanup (c); | 205 | curl_easy_cleanup (c); |
217 | } | 206 | } |
218 | fprintf (stderr, "\n"); | 207 | fprintf (stderr, "\n"); |