diff options
author | Christian Grothoff <christian@grothoff.org> | 2008-04-13 04:55:23 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2008-04-13 04:55:23 +0000 |
commit | a9b74de734dc22c27cb097bb69f2edba1927dc7f (patch) | |
tree | bac92742f53c206e6abf5d0749d34a18127c6497 | |
parent | b799dd25c35a0c9907037220a2879bd193726203 (diff) | |
download | libmicrohttpd-a9b74de734dc22c27cb097bb69f2edba1927dc7f.tar.gz libmicrohttpd-a9b74de734dc22c27cb097bb69f2edba1927dc7f.zip |
mov
-rw-r--r-- | src/testzzuf/daemontest_get.c | 10 | ||||
-rw-r--r-- | src/testzzuf/daemontest_get_chunked.c | 10 | ||||
-rw-r--r-- | src/testzzuf/daemontest_large_put.c | 10 | ||||
-rw-r--r-- | src/testzzuf/daemontest_long_header.c | 15 | ||||
-rw-r--r-- | src/testzzuf/daemontest_post.c | 11 | ||||
-rw-r--r-- | src/testzzuf/daemontest_postform.c | 10 | ||||
-rw-r--r-- | src/testzzuf/daemontest_put.c | 10 | ||||
-rw-r--r-- | src/testzzuf/daemontest_put_chunked.c | 10 | ||||
-rw-r--r-- | src/testzzuf/socat.c | 10 |
9 files changed, 12 insertions, 84 deletions
diff --git a/src/testzzuf/daemontest_get.c b/src/testzzuf/daemontest_get.c index 5e4b2d28..eb766991 100644 --- a/src/testzzuf/daemontest_get.c +++ b/src/testzzuf/daemontest_get.c | |||
@@ -37,16 +37,6 @@ | |||
37 | 37 | ||
38 | #include "socat.c" | 38 | #include "socat.c" |
39 | 39 | ||
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 | static int oneone; | 40 | static int oneone; |
51 | 41 | ||
52 | struct CBC | 42 | struct CBC |
diff --git a/src/testzzuf/daemontest_get_chunked.c b/src/testzzuf/daemontest_get_chunked.c index cde1e46b..7b7ac5a0 100644 --- a/src/testzzuf/daemontest_get_chunked.c +++ b/src/testzzuf/daemontest_get_chunked.c | |||
@@ -37,16 +37,6 @@ | |||
37 | 37 | ||
38 | #include "socat.c" | 38 | #include "socat.c" |
39 | 39 | ||
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 | struct CBC | 40 | struct CBC |
51 | { | 41 | { |
52 | char *buf; | 42 | char *buf; |
diff --git a/src/testzzuf/daemontest_large_put.c b/src/testzzuf/daemontest_large_put.c index 2a80bdb4..b39ff737 100644 --- a/src/testzzuf/daemontest_large_put.c +++ b/src/testzzuf/daemontest_large_put.c | |||
@@ -37,16 +37,6 @@ | |||
37 | 37 | ||
38 | #include "socat.c" | 38 | #include "socat.c" |
39 | 39 | ||
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 | static int oneone; | 40 | static int oneone; |
51 | 41 | ||
52 | /** | 42 | /** |
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"); |
diff --git a/src/testzzuf/daemontest_post.c b/src/testzzuf/daemontest_post.c index 690ab218..7823d1ed 100644 --- a/src/testzzuf/daemontest_post.c +++ b/src/testzzuf/daemontest_post.c | |||
@@ -38,17 +38,6 @@ | |||
38 | 38 | ||
39 | #include "socat.c" | 39 | #include "socat.c" |
40 | 40 | ||
41 | /** | ||
42 | * A larger loop count will run more random tests -- | ||
43 | * which would be good, except that it may take too | ||
44 | * long for most user's patience. So this small | ||
45 | * value is the default. | ||
46 | */ | ||
47 | #define LOOP_COUNT 10 | ||
48 | |||
49 | #define CURL_TIMEOUT 50L | ||
50 | |||
51 | |||
52 | #define POST_DATA "name=daniel&project=curl" | 41 | #define POST_DATA "name=daniel&project=curl" |
53 | 42 | ||
54 | static int oneone; | 43 | static int oneone; |
diff --git a/src/testzzuf/daemontest_postform.c b/src/testzzuf/daemontest_postform.c index e4f6ec3d..767be56e 100644 --- a/src/testzzuf/daemontest_postform.c +++ b/src/testzzuf/daemontest_postform.c | |||
@@ -38,16 +38,6 @@ | |||
38 | 38 | ||
39 | #include "socat.c" | 39 | #include "socat.c" |
40 | 40 | ||
41 | /** | ||
42 | * A larger loop count will run more random tests -- | ||
43 | * which would be good, except that it may take too | ||
44 | * long for most user's patience. So this small | ||
45 | * value is the default. | ||
46 | */ | ||
47 | #define LOOP_COUNT 10 | ||
48 | |||
49 | #define CURL_TIMEOUT 50L | ||
50 | |||
51 | static int oneone; | 41 | static int oneone; |
52 | 42 | ||
53 | struct CBC | 43 | struct CBC |
diff --git a/src/testzzuf/daemontest_put.c b/src/testzzuf/daemontest_put.c index 82ab2289..8cd367c9 100644 --- a/src/testzzuf/daemontest_put.c +++ b/src/testzzuf/daemontest_put.c | |||
@@ -38,16 +38,6 @@ | |||
38 | 38 | ||
39 | #include "socat.c" | 39 | #include "socat.c" |
40 | 40 | ||
41 | /** | ||
42 | * A larger loop count will run more random tests -- | ||
43 | * which would be good, except that it may take too | ||
44 | * long for most user's patience. So this small | ||
45 | * value is the default. | ||
46 | */ | ||
47 | #define LOOP_COUNT 10 | ||
48 | |||
49 | #define CURL_TIMEOUT 50L | ||
50 | |||
51 | static int oneone; | 41 | static int oneone; |
52 | 42 | ||
53 | struct CBC | 43 | struct CBC |
diff --git a/src/testzzuf/daemontest_put_chunked.c b/src/testzzuf/daemontest_put_chunked.c index a78db8d3..61caa2e6 100644 --- a/src/testzzuf/daemontest_put_chunked.c +++ b/src/testzzuf/daemontest_put_chunked.c | |||
@@ -38,16 +38,6 @@ | |||
38 | 38 | ||
39 | #include "socat.c" | 39 | #include "socat.c" |
40 | 40 | ||
41 | /** | ||
42 | * A larger loop count will run more random tests -- | ||
43 | * which would be good, except that it may take too | ||
44 | * long for most user's patience. So this small | ||
45 | * value is the default. | ||
46 | */ | ||
47 | #define LOOP_COUNT 10 | ||
48 | |||
49 | #define CURL_TIMEOUT 50L | ||
50 | |||
51 | struct CBC | 41 | struct CBC |
52 | { | 42 | { |
53 | char *buf; | 43 | char *buf; |
diff --git a/src/testzzuf/socat.c b/src/testzzuf/socat.c index 800d5c37..d918b891 100644 --- a/src/testzzuf/socat.c +++ b/src/testzzuf/socat.c | |||
@@ -30,6 +30,16 @@ | |||
30 | #include <signal.h> | 30 | #include <signal.h> |
31 | 31 | ||
32 | 32 | ||
33 | /** | ||
34 | * A larger loop count will run more random tests -- | ||
35 | * which would be good, except that it may take too | ||
36 | * long for most user's patience. So this small | ||
37 | * value is the default. | ||
38 | */ | ||
39 | #define LOOP_COUNT 10 | ||
40 | |||
41 | #define CURL_TIMEOUT 50L | ||
42 | |||
33 | static pid_t zzuf_pid; | 43 | static pid_t zzuf_pid; |
34 | 44 | ||
35 | static void | 45 | static void |