close the connection when a bad test number was requested
authorDaniel Stenberg <daniel@haxx.se>
Thu, 9 Dec 2004 09:58:25 +0000 (09:58 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 9 Dec 2004 09:58:25 +0000 (09:58 +0000)
tests/server/sws.c

index 7ca14de..8503cf2 100644 (file)
@@ -305,6 +305,7 @@ int ProcessRequest(struct httprequest *req)
       stream=fopen(filename, "rb");
       if(!stream) {
         logmsg("Couldn't open test file %d", req->testno);
+        req->open = FALSE; /* closes connection */
         return 0;
       }
       else {