diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-11-08 16:04:26 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-11-08 16:04:26 +0000 |
commit | e67550d90d67a4ce42d695f98b173708c73c1adf (patch) | |
tree | fdf5da14cd79626c97930952d14b8da706da7527 /src/fuzzy_storage.c | |
parent | 12f80b153d46944e6fb009bf80a6f1db3fbc80be (diff) | |
download | rspamd-e67550d90d67a4ce42d695f98b173708c73c1adf.tar.gz rspamd-e67550d90d67a4ce42d695f98b173708c73c1adf.zip |
[Minor] Increase number of connections merely when we have a session
Diffstat (limited to 'src/fuzzy_storage.c')
-rw-r--r-- | src/fuzzy_storage.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fuzzy_storage.c b/src/fuzzy_storage.c index ac6c692d1..94bbc6484 100644 --- a/src/fuzzy_storage.c +++ b/src/fuzzy_storage.c @@ -1189,8 +1189,6 @@ accept_fuzzy_socket (EV_P_ ev_io *w, int revents) if (revents == EV_READ) { for (;;) { - worker->nconns++; - r = rspamd_inet_address_recvfrom (w->fd, buf, sizeof (buf), @@ -1219,6 +1217,7 @@ accept_fuzzy_socket (EV_P_ ev_io *w, int revents) session->ctx = worker->ctx; session->time = (guint64) time (NULL); session->addr = addr; + worker->nconns++; if (rspamd_fuzzy_cmd_from_wire (buf, r, session)) { /* Check shingles count sanity */ |