mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-19277: Add status variable that gets incremented if connection is aborted prior to authentication
MDEV-19282: Log more specific warning with log_warnings=2 if connection is aborted prior to authentication
This commit is contained in:
@ -408,3 +408,36 @@ test
|
||||
test
|
||||
drop procedure p1;
|
||||
SET global secure_auth=default;
|
||||
#
|
||||
# MDEV-19282: Log more specific warning with log_warnings=2 if
|
||||
# connection is aborted prior to authentication
|
||||
# MDEV-19277: Add status variable that gets incremented if
|
||||
# connection is aborted prior to authentication
|
||||
#
|
||||
flush status;
|
||||
SHOW GLOBAL STATUS LIKE 'Aborted%';
|
||||
Variable_name Value
|
||||
Aborted_clients 0
|
||||
Aborted_connects 0
|
||||
Aborted_connects_preauth 0
|
||||
SET GLOBAL log_warnings=2;
|
||||
NOT FOUND /This connection closed normally without authentication/ in mysqld.1.err
|
||||
SHOW GLOBAL STATUS LIKE 'Aborted%';
|
||||
Variable_name Value
|
||||
Aborted_clients 0
|
||||
Aborted_connects 1
|
||||
Aborted_connects_preauth 1
|
||||
FOUND 1 /This connection closed normally without authentication/ in mysqld.1.err
|
||||
FOUND 52 /unauthenticated/ in mysqld.1.err
|
||||
SET @save_connect_timeout= @@connect_timeout;
|
||||
SET GLOBAL connect_timeout=2;
|
||||
SHOW GLOBAL STATUS LIKE 'Aborted%';
|
||||
Variable_name Value
|
||||
Aborted_clients 0
|
||||
Aborted_connects 2
|
||||
Aborted_connects_preauth 2
|
||||
FOUND 2 /This connection closed normally without authentication/ in mysqld.1.err
|
||||
FOUND 53 /unauthenticated/ in mysqld.1.err
|
||||
SET GLOBAL log_warnings=default;
|
||||
SET GLOBAL connect_timeout= @save_connect_timeout;
|
||||
# End of 10.4 tests
|
||||
|
Reference in New Issue
Block a user