forked from percona/percona-server
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[vio] PS-5327 proxy protocol-related memory leak at shutdown
The Problem: When proxy protocol is enabled, MySQL won't cleanup vio_pp_networks variable at shutdown. Solution: Cleanup allocated networks at shutdown. Enhanced proxy_protocol test to cover this scenario.
- Loading branch information
1 parent
a804945
commit de05380
Showing
5 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
SELECT @@proxy_protocol_networks; | ||
@@proxy_protocol_networks | ||
* | ||
# An unproxied client connection should be rejected if proxying enabled on the server | ||
Got one of the listed errors | ||
# PS-5327 proxy protocol-related memory leak at shutdown | ||
# restart |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
SELECT @@proxy_protocol_networks; | ||
|
||
--echo # An unproxied client connection should be rejected if proxying enabled on the server | ||
--disable_query_log | ||
--error ER_BAD_HOST_ERROR,CR_SERVER_LOST | ||
connect (err,"127.0.0.1",root,,,$MASTER_MYPORT,); | ||
--enable_query_log | ||
|
||
--echo # PS-5327 proxy protocol-related memory leak at shutdown | ||
# Restart the server | ||
--source include/restart_mysqld.inc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters