aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_http.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-08-24 10:06:16 +0100
committerGitHub <noreply@github.com>2018-08-24 10:06:16 +0100
commit6667005f12ce6ebd50ee9ef64a4d7af3ccb19199 (patch)
treea5a04c2106ec8c2c9d467dfea4a77ca996175153 /src/lua/lua_http.c
parent813ad73ebd55307c1280ec968c6b5fb8f464ac2b (diff)
parent452d13bd045d61e1b4838f433de11a2be46af801 (diff)
downloadrspamd-6667005f12ce6ebd50ee9ef64a4d7af3ccb19199.tar.gz
rspamd-6667005f12ce6ebd50ee9ef64a4d7af3ccb19199.zip
Merge pull request #2441 from negram/coroutines-to-finish-periodic-onload
Coroutines to finish/periodic/onload
Diffstat (limited to 'src/lua/lua_http.c')
-rw-r--r--src/lua/lua_http.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c
index 0c94969fa..1534ebfa2 100644
--- a/src/lua/lua_http.c
+++ b/src/lua/lua_http.c
@@ -274,7 +274,6 @@ lua_http_resume_handler (struct rspamd_http_connection *conn,
gsize body_len;
struct rspamd_http_header *h, *htmp;
- msg_info ("T=%p, L=%p, status=%d, err=%s", cbd->thread, cbd->thread->lua_state, lua_status (cbd->thread->lua_state), err);
if (err) {
lua_pushstring (L, err);
lua_pushnil (L);
@@ -336,7 +335,7 @@ lua_http_resume_handler (struct rspamd_http_connection *conn,
lua_settable (L, -3);
}
- lua_resume_thread (cbd->thread, 2);
+ lua_thread_resume (cbd->thread, 2);
}
static gboolean
@@ -899,7 +898,7 @@ lua_http_request (lua_State *L)
if (cbd->cbref == -1) {
cbd->thread = lua_thread_pool_get_running_entry (cfg->lua_thread_pool);
- return lua_yield_thread (cbd->thread, 0);
+ return lua_thread_yield (cbd->thread, 0);
} else {
lua_pushboolean (L, TRUE);
return 1;