From: Vsevolod Stakhov Date: Wed, 27 Apr 2016 14:25:40 +0000 (+0100) Subject: [Fix] Fix timeouts processing in lua_redis X-Git-Tag: 1.3.0~612 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=781af3209968da2b8d7a4b1e38d4a1473c8a9852;p=thirdparty%2Frspamd.git [Fix] Fix timeouts processing in lua_redis --- diff --git a/src/lua/lua_redis.c b/src/lua/lua_redis.c index 32b643acac..016660b8f4 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;