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.
This commit is contained in:
@ -132,15 +132,17 @@ int main(int argc, char* argv[])
|
|||||||
|
|
||||||
void* parall_traffic(void* ptr)
|
void* parall_traffic(void* ptr)
|
||||||
{
|
{
|
||||||
MYSQL* conn;
|
|
||||||
while (exit_flag == 0)
|
while (exit_flag == 0)
|
||||||
{
|
{
|
||||||
conn = Test->maxscales->open_rwsplit_connection(0);
|
MYSQL* conn = Test->maxscales->open_rwsplit_connection(0);
|
||||||
mysql_close(conn);
|
|
||||||
if (Test->backend_ssl)
|
while (exit_flag == 0 && mysql_query(conn, "DO 1") == 0)
|
||||||
{
|
{
|
||||||
sleep(1);
|
sleep(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mysql_close(conn);
|
||||||
}
|
}
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user