From 3dda14a58e5e37949b1b351b3b07bdcfc1970fe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Thu, 16 Jan 2020 10:11:12 +0200 Subject: [PATCH] Reduce load of bug601 test The test repeatedly creates connections which exhausts all the available TCP connections. The test doesn't appear to test any specific functionality with the repeated reconnections which means removing it shouldn't be a problem. --- maxscale-system-test/bug601.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/maxscale-system-test/bug601.cpp b/maxscale-system-test/bug601.cpp index a2fe6b048..c0a23a11c 100644 --- a/maxscale-system-test/bug601.cpp +++ b/maxscale-system-test/bug601.cpp @@ -132,15 +132,17 @@ int main(int argc, char* argv[]) void* parall_traffic(void* ptr) { - MYSQL* conn; while (exit_flag == 0) { - conn = Test->maxscales->open_rwsplit_connection(0); - mysql_close(conn); - if (Test->backend_ssl) + MYSQL* conn = Test->maxscales->open_rwsplit_connection(0); + + while (exit_flag == 0 && mysql_query(conn, "DO 1") == 0) { sleep(1); } + + mysql_close(conn); } + return NULL; }