aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-02-24 18:14:48 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-02-24 18:14:48 +0000
commit065b87e949a4d4d67a4dace2429da45e2a8bc6af (patch)
treecaf4076b61a8685724222087defa2cfc5cb29273 /tests
parenta6206a3aefa2814959dad1bc84ef96b5bf24d60f (diff)
7.10.4-pre2 commit
Diffstat (limited to 'tests')
-rw-r--r--tests/server/sws.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/server/sws.c b/tests/server/sws.c
index c93af94ee..0b1865a58 100644
--- a/tests/server/sws.c
+++ b/tests/server/sws.c
@@ -226,6 +226,7 @@ static int get_request(int sock, int *part)
if (got <= 0) {
if (got < 0) {
perror("recv");
+ logmsg("recv() returned error");
return DOCNUMBER_INTERNAL;
}
logmsg("Connection closed by client");
@@ -312,7 +313,7 @@ static int get_request(int sock, int *part)
logmsg("Got illegal request");
fprintf(stderr, "Got illegal request\n");
- return -1;
+ return DOCNUMBER_404;
}