Handle unexpected responses to COM_CHANGE_USER
When an unexpected response to a COM_CHANGE_USER is received, it is now processes and discarded instead of treated as an error. This will allow further analysis of the situation in addition to possibly solving some of the problems that the persistent connections have. Added extra info level logging to relevant parts of the code that deal with the COM_CHANGE_USER reply processing. This information should allow tracking of the response state for debugging purposes.
This commit is contained in:
@ -347,7 +347,8 @@ static inline bool MYSQL_IS_ERROR_PACKET(const uint8_t* header)
|
||||
|
||||
static inline bool MYSQL_IS_COM_QUIT(const uint8_t* header)
|
||||
{
|
||||
return MYSQL_GET_COMMAND(header) == MYSQL_COM_QUIT;
|
||||
return MYSQL_GET_COMMAND(header) == MYSQL_COM_QUIT &&
|
||||
MYSQL_GET_PAYLOAD_LEN(header) == 1;
|
||||
}
|
||||
|
||||
static inline bool MYSQL_IS_COM_INIT_DB(const uint8_t* header)
|
||||
|
Reference in New Issue
Block a user