aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-04-26 07:48:05 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-04-26 07:48:05 +0000
commit044755b30f01554a12f8d8afa2d176ca7f053d83 (patch)
tree2c0ffd10182ec68df6cc1b66f28f1e80dc6dbcf2
parent9aa22399a85970a7265cf476982b33f4d7fd124e (diff)
handles much larger POSTs, replaced snprintf() with sprintf() since this
needs to be more portable and in the test server we can skip the extra safety
-rw-r--r--tests/server/sws.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/tests/server/sws.c b/tests/server/sws.c
index 01991bbc0..1b0f145e5 100644
--- a/tests/server/sws.c
+++ b/tests/server/sws.c
@@ -21,9 +21,6 @@ char *spitout(FILE *stream, char *main, char *sub, int *size);
#define DEFAULT_LOGFILE "log/sws.log"
#endif
-#define DOCBUFSIZE 4
-#define BUFFERSIZE (DOCBUFSIZE * 1024)
-
#define VERSION "cURL test suite HTTP server/0.1"
#define REQUEST_DUMP "log/server.input"
@@ -73,7 +70,7 @@ static void sigpipe_handler(int sig)
static void sigterm_handler(int sig)
{
char logbuf[100];
- snprintf(logbuf, 100, "Got signal %d, terminating", sig);
+ sprintf(logbuf, "Got signal %d, terminating", sig);
logmsg(logbuf);
sigterm = 1;
}
@@ -136,12 +133,12 @@ void storerequest(char *reqbuf)
}
-#define REQBUFSIZ 50000
-#define REQBUFSIZ_TXT "49999"
+#define REQBUFSIZ 150000
+#define REQBUFSIZ_TXT "149999"
/* very-big-path support */
-#define MAXDOCNAMELEN 40000
-#define MAXDOCNAMELEN_TXT "39999"
+#define MAXDOCNAMELEN 140000
+#define MAXDOCNAMELEN_TXT "139999"
#define REQUEST_KEYWORD_SIZE 256
static int get_request(int sock, int *part)