Throttle Filter: Properly disconnect the client session.

The client session was not disconnected when the query threashold
was exceeded in a DelayedCall.
This commit is contained in:
Niclas Antti
2018-06-17 15:16:15 +03:00
parent 81deedd857
commit 72bfc73706

View File

@ -105,7 +105,10 @@ bool ThrottleSession::delayed_routeQuery(maxscale::Worker::Call::action_t action
switch (action)
{
case maxscale::Worker::Call::EXECUTE:
real_routeQuery(buffer, true);
if (!real_routeQuery(buffer, true))
{
poll_fake_hangup_event(m_pSession->client_dcb);
}
break;
case maxscale::Worker::Call::CANCEL: