commit 7b57f65: [Minor] Fix coroutine based error handling in lua http
Vsevolod Stakhov
vsevolod at highsecure.ru
Tue Mar 19 14:49:03 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-03-19 14:45:08 +0000
URL: https://github.com/rspamd/rspamd/commit/7b57f659178b683176c9611609aa5ced5476091f (HEAD -> master)
[Minor] Fix coroutine based error handling in lua http
---
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 bd8404b17..aba23e0dd 100644
--- a/src/lua/lua_http.c
+++ b/src/lua/lua_http.c
@@ -937,6 +937,10 @@ lua_http_request (lua_State *L)
cbd->auth = auth;
cbd->task = task;
+ if (cbd->cbref == -1) {
+ cbd->thread = lua_thread_pool_get_running_entry (cfg->lua_thread_pool);
+ }
+
REF_INIT_RETAIN (cbd, lua_http_cbd_dtor);
if (task) {
More information about the Commits
mailing list