commit d0c8549: [Minor] Set ok flag on success

Vsevolod Stakhov vsevolod at rspamd.com
Sat Jul 2 12:49:07 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-07-02 13:40:31 +0100
URL: https://github.com/rspamd/rspamd/commit/d0c8549bc34d80c41fac2810aa74787e1104440e

[Minor] Set ok flag on success

---
 src/lua/lua_http.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c
index d7f8c74f4..a53145c7c 100644
--- a/src/lua/lua_http.c
+++ b/src/lua/lua_http.c
@@ -260,6 +260,10 @@ lua_http_finish_handler (struct rspamd_http_connection *conn,
 	}
 	lua_thread_pool_prepare_callback (cbd->cfg->lua_thread_pool, &lcbd);
 
+	if (cbd->up) {
+		rspamd_upstream_ok(cbd->up);
+	}
+
 	L = lcbd.L;
 
 	lua_rawgeti (L, LUA_REGISTRYINDEX, cbd->cbref);


More information about the Commits mailing list