commit ab72b00: [Minor] Another try to fix race

Vsevolod Stakhov vsevolod at highsecure.ru
Mon Jan 13 10:56:07 UTC 2020


Author: Vsevolod Stakhov
Date: 2020-01-13 10:50:13 +0000
URL: https://github.com/rspamd/rspamd/commit/ab72b000c4b7d72480ca6347334b64d3541e31ad (HEAD -> master)

[Minor] Another try to fix race

---
 src/libserver/redis_pool.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/libserver/redis_pool.c b/src/libserver/redis_pool.c
index 3cae96deb..9187a5e0b 100644
--- a/src/libserver/redis_pool.c
+++ b/src/libserver/redis_pool.c
@@ -217,6 +217,7 @@ rspamd_redis_conn_timeout (EV_P_ ev_timer *w, int revents)
 	}
 	else {
 		/* Finalising by timeout */
+		ev_timer_stop (EV_A_ w);
 		msg_debug_rpool ("final removal of connection %p, refcount: %d",
 				conn->ctx, conn->ref.refcount);
 		REF_RELEASE (conn);


More information about the Commits mailing list