minor cleanup in ngx.sleep().
This commit is contained in:
Родитель
7134d428a7
Коммит
27dd2bab82
|
@ -81,11 +81,6 @@ ngx_http_lua_ngx_sleep(lua_State *L)
|
|||
ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
|
||||
"lua ready to sleep for %d ms", delay);
|
||||
|
||||
if (ctx->entered_content_phase) {
|
||||
dd("set write event handler");
|
||||
r->write_event_handler = ngx_http_lua_content_wev_handler;
|
||||
}
|
||||
|
||||
return lua_yield(L, 0);
|
||||
}
|
||||
|
||||
|
|
|
@ -519,7 +519,7 @@ ngx_http_lua_ngx_location_capture_multi(lua_State *L)
|
|||
ngx_http_set_ctx(sr, sr_ctx, ngx_http_lua_module);
|
||||
|
||||
rc = ngx_http_lua_adjust_subrequest(sr, method, body, vars_action,
|
||||
extra_vars);
|
||||
extra_vars);
|
||||
|
||||
if (rc != NGX_OK) {
|
||||
return luaL_error(L, "failed to adjust the subrequest: %d",
|
||||
|
|
Загрузка…
Ссылка в новой задаче