]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
sws: prevent "connection monitor" to say disconnect twice
authorDaniel Stenberg <daniel@haxx.se>
Fri, 6 Feb 2026 23:16:58 +0000 (00:16 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 7 Feb 2026 21:16:53 +0000 (22:16 +0100)
tests/server/sws.c

index 6f8bee519d896fca9631c72ab18fbde673967a00..c1b246d50fd36be2b30351b410a1185e64ca7b03 100644 (file)
@@ -2385,6 +2385,7 @@ static int test_sws(int argc, const char *argv[])
             if(req->connmon) {
               const char *keepopen = "[DISCONNECT]\n";
               sws_storerequest(keepopen, strlen(keepopen));
+              req->connmon = FALSE;
             }
 
             if(!req->open)