← Commit list

ea00da992e

Samuel Henrique
Samuel Henrique
2026-09-24
SUCCESS Duration: 431s

Subject

sws: fix connection-monitor for connections closed before a request

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

tests/server/sws.c+11 -0
@@ -2131,6 +2131,17 @@ static int test_sws(int argc, const char *argv[])
goto sws_cleanup;
if(rc < 0) {
+ if(req->testno == DOCNUMBER_NOTHING) {
+ /* The test number is unknown here, so connmon may be left over
+ from a previous test case, for example when a client closes
+ a connection without sending anything. Use the setting of
+ the test case in server.cmd, or disable it without one. */
+ req->connmon = FALSE;
+ parse_cmdfile(req);
+ if(req->testno != DOCNUMBER_NOTHING)
+ sws_parse_servercmd(req);
+ }
+
logmsg("====> Client disconnect %d", req->connmon);
if(req->connmon) {