Don't write errors to dummy sessions
If a DCB is closed before a response to the handshake packet is received, the DCB's session will point to the dummy session. In this case no error should be written to the DCB.
This commit is contained in:
parent
255250652d
commit
f53e112bf4
@ -1416,7 +1416,7 @@ static int gw_client_hangup_event(DCB *dcb)
|
||||
goto retblock;
|
||||
}
|
||||
|
||||
if (!session_valid_for_pool(session))
|
||||
if (session->state != SESSION_STATE_DUMMY && !session_valid_for_pool(session))
|
||||
{
|
||||
// The client did not send a COM_QUIT packet
|
||||
modutil_send_mysql_err_packet(dcb, 0, 0, 1927, "08S01", "Connection killed by MaxScale");
|
||||
|
Loading…
x
Reference in New Issue
Block a user