mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
f9315b3321
Test fixes: Since fix for CONC-603 (wrong error handling in TLS read/write) in case of a read/write error client doesn't return always error 2013 (server has gone away), so in addition we need to check for error 2026 (TLS/SSL error) and 5014 (write error).
20 lines
588 B
Text
20 lines
588 B
Text
--source include/have_ssl_communication.inc
|
|
|
|
# Save the initial number of concurrent sessions
|
|
--source include/count_sessions.inc
|
|
|
|
--echo # connect with read timeout so SLEEP() should timeout
|
|
connect (ssl_con,localhost,root,,,,,SSL read_timeout=5);
|
|
|
|
--echo # Check ssl turned on
|
|
SELECT (VARIABLE_VALUE <> '') AS have_ssl FROM INFORMATION_SCHEMA.SESSION_STATUS WHERE VARIABLE_NAME='Ssl_cipher';
|
|
|
|
# --error CR_SERVER_LOST
|
|
--error 2013,2026
|
|
SELECT SLEEP(600);
|
|
|
|
connection default;
|
|
disconnect ssl_con;
|
|
|
|
# Wait till all disconnects are completed
|
|
--source include/wait_until_count_sessions.inc
|