MXS-1921: Explain why session was closed
When a client connection is closed by MaxScale before the client initiates a controlled closing of the connection, an error message is sent. This error message now also explains why the connection was closed to make problem resolution easier.
This commit is contained in:
@ -2473,6 +2473,7 @@ dcb_accept(DCB *dcb)
|
||||
{
|
||||
client_dcb->func.connlimit(client_dcb, client_dcb->service->max_connections);
|
||||
}
|
||||
dcb->session->close_reason = SESSION_CLOSE_TOO_MANY_CONNECTIONS;
|
||||
dcb_close(client_dcb);
|
||||
client_dcb = NULL;
|
||||
}
|
||||
@ -2881,6 +2882,7 @@ void dcb_process_idle_sessions(int thr)
|
||||
dcb->user ? dcb->user : "<unknown>",
|
||||
dcb->remote ? dcb->remote : "<unknown>",
|
||||
(float)idle / 10.f);
|
||||
dcb->session->close_reason = SESSION_CLOSE_TIMEOUT;
|
||||
poll_fake_hangup_event(dcb);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user