From 72bfc73706386f3cbf06c03062fc33bb07ee7de0 Mon Sep 17 00:00:00 2001 From: Niclas Antti Date: Sun, 17 Jun 2018 15:16:15 +0300 Subject: [PATCH] Throttle Filter: Properly disconnect the client session. The client session was not disconnected when the query threashold was exceeded in a DelayedCall. --- server/modules/filter/throttlefilter/throttlesession.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/modules/filter/throttlefilter/throttlesession.cc b/server/modules/filter/throttlefilter/throttlesession.cc index 6b8d99836..618dbc1e2 100644 --- a/server/modules/filter/throttlefilter/throttlesession.cc +++ b/server/modules/filter/throttlefilter/throttlesession.cc @@ -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: