diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2019-05-13 21:34:16 +0200 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2019-05-14 16:38:13 +0200 |
commit | 29a0f5acf3b8025590ba38bae736a9ad10df4ed7 (patch) | |
tree | 847b87709c9d383cd4b4da6d870f8771054c3817 /mysql-test/main/connect.result | |
parent | c3ea52c92a23f72f49008f493b92f2692d7a1082 (diff) | |
download | mariadb-git-29a0f5acf3b8025590ba38bae736a9ad10df4ed7.tar.gz |
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
Diffstat (limited to 'mysql-test/main/connect.result')
-rw-r--r-- | mysql-test/main/connect.result | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/mysql-test/main/connect.result b/mysql-test/main/connect.result index 89e10d221d2..4e5b1d7f6e2 100644 --- a/mysql-test/main/connect.result +++ b/mysql-test/main/connect.result @@ -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 |