From 781af3209968da2b8d7a4b1e38d4a1473c8a9852 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 27 Apr 2016 15:25:40 +0100 Subject: [PATCH] [Fix] Fix timeouts processing in lua_redis --- src/lua/lua_redis.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/lua/lua_redis.c b/src/lua/lua_redis.c index 32b643aca..016660b8f 100644 --- a/src/lua/lua_redis.c +++ b/src/lua/lua_redis.c @@ -347,7 +347,7 @@ lua_redis_timeout (int fd, short what, gpointer u) ctx = sp_ud->ctx; msg_info ("timeout while querying redis server"); - lua_redis_push_error ("timeout while connecting the server", ctx, sp_ud, TRUE); + lua_redis_push_error ("timeout while connecting the server", ctx, sp_ud, FALSE); if (sp_ud->c->ctx) { ac = sp_ud->c->ctx; @@ -808,7 +808,6 @@ lua_redis_connect (lua_State *L) rspamd_inet_addr_t *ip = NULL; const gchar *host; struct lua_redis_ctx *ctx = NULL, **pctx; - struct lua_redis_specific_userdata *sp_ud; struct lua_redis_userdata *ud; struct rspamd_task *task = NULL; gboolean ret = FALSE; -- 2.39.5