summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2008-04-13 04:55:23 +0000
committerChristian Grothoff <christian@grothoff.org>2008-04-13 04:55:23 +0000
commita9b74de734dc22c27cb097bb69f2edba1927dc7f (patch)
treebac92742f53c206e6abf5d0749d34a18127c6497
parentb799dd25c35a0c9907037220a2879bd193726203 (diff)
mov
-rw-r--r--src/testzzuf/daemontest_get.c10
-rw-r--r--src/testzzuf/daemontest_get_chunked.c10
-rw-r--r--src/testzzuf/daemontest_large_put.c10
-rw-r--r--src/testzzuf/daemontest_long_header.c15
-rw-r--r--src/testzzuf/daemontest_post.c11
-rw-r--r--src/testzzuf/daemontest_postform.c10
-rw-r--r--src/testzzuf/daemontest_put.c10
-rw-r--r--src/testzzuf/daemontest_put_chunked.c10
-rw-r--r--src/testzzuf/socat.c10
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 @@
#include "socat.c"
-/**
- * A larger loop count will run more random tests --
- * which would be good, except that it may take too
- * long for most user's patience. So this small
- * value is the default.
- */
-#define LOOP_COUNT 10
-
-#define CURL_TIMEOUT 50L
-
static int oneone;
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 @@
#include "socat.c"
-/**
- * A larger loop count will run more random tests --
- * which would be good, except that it may take too
- * long for most user's patience. So this small
- * value is the default.
- */
-#define LOOP_COUNT 10
-
-#define CURL_TIMEOUT 50L
-
struct CBC
{
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 @@
#include "socat.c"
-/**
- * A larger loop count will run more random tests --
- * which would be good, except that it may take too
- * long for most user's patience. So this small
- * value is the default.
- */
-#define LOOP_COUNT 10
-
-#define CURL_TIMEOUT 50L
-
static int oneone;
/**
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 @@
#include "socat.c"
/**
- * A larger loop count will run more random tests --
- * which would be good, except that it may take too
- * long for most user's patience. So this small
- * value is the default.
- */
-#define LOOP_COUNT 10
-
-#define CURL_TIMEOUT 50L
-
-/**
* We will set the memory available per connection to
* half of this value, so the actual value does not have
* to be big at all...
@@ -186,14 +176,12 @@ testLongHeaderGet ()
for (i = 0; i < LOOP_COUNT; i++)
{
fprintf (stderr, ".");
-
-
c = curl_easy_init ();
url = malloc (VERY_LONG);
memset (url, 'a', VERY_LONG);
url[VERY_LONG - 1] = '\0';
url[VERY_LONG / 2] = ':';
- url[VERY_LONG / 2 + 1] = ':';
+ url[VERY_LONG / 2 + 1] = ' ';
header = curl_slist_append (header, url);
curl_easy_setopt (c, CURLOPT_HTTPHEADER, header);
@@ -213,6 +201,7 @@ testLongHeaderGet ()
curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1);
curl_easy_perform (c);
curl_slist_free_all (header);
+ header = NULL;
curl_easy_cleanup (c);
}
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 @@
#include "socat.c"
-/**
- * A larger loop count will run more random tests --
- * which would be good, except that it may take too
- * long for most user's patience. So this small
- * value is the default.
- */
-#define LOOP_COUNT 10
-
-#define CURL_TIMEOUT 50L
-
-
#define POST_DATA "name=daniel&project=curl"
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 @@
#include "socat.c"
-/**
- * A larger loop count will run more random tests --
- * which would be good, except that it may take too
- * long for most user's patience. So this small
- * value is the default.
- */
-#define LOOP_COUNT 10
-
-#define CURL_TIMEOUT 50L
-
static int oneone;
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 @@
#include "socat.c"
-/**
- * A larger loop count will run more random tests --
- * which would be good, except that it may take too
- * long for most user's patience. So this small
- * value is the default.
- */
-#define LOOP_COUNT 10
-
-#define CURL_TIMEOUT 50L
-
static int oneone;
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 @@
#include "socat.c"
-/**
- * A larger loop count will run more random tests --
- * which would be good, except that it may take too
- * long for most user's patience. So this small
- * value is the default.
- */
-#define LOOP_COUNT 10
-
-#define CURL_TIMEOUT 50L
-
struct CBC
{
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 @@
#include <signal.h>
+/**
+ * A larger loop count will run more random tests --
+ * which would be good, except that it may take too
+ * long for most user's patience. So this small
+ * value is the default.
+ */
+#define LOOP_COUNT 10
+
+#define CURL_TIMEOUT 50L
+
static pid_t zzuf_pid;
static void