forked from kunpengcompute/mysql-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug #30771233: MYSQL_REAL_CONNECT_NONBLOCKING() IS NOT NONBLOCKING
RB#23860 mysql_real_connect_nonblocking() had a busy loop in it that was basically turning it into a blocking function. Removed the busy loop. Added a new state for connect to track between connect attempted and connect complete. Fixed the test cases that were assuming that mysql_real_connect_nonblocking was: 1. never returning NET_ASYNC_NOT_READY 2. when it was returning that there are always data to be waited on the socket. This was dead code test that is now alive. No test suite added since the existing suite already covers this.
- Loading branch information
Showing
5 changed files
with
115 additions
and
23 deletions.
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
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
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