Feature/nano attachment delayed verdict response body (#50)

* Add delayed verdict support for response body in nano attachment
Summary:
* Implement TRAFFIC_VERDICT_DELAYED handling in SendResponseBody function * Add delayed verdict thread spawning when response body returns delayed verdict This change mirrors the existing delayed verdict handling in SendRequestBody to ensure consistent behavior for both request and response body processing.

* Redirect kong nano attachment output from stdout to stderr
This commit is contained in:
Gray
2025-12-23 11:23:14 +02:00
committed by GitHub
parent d723e297d1
commit 41e13b1bba
2 changed files with 26 additions and 1 deletions

View File

@@ -12,7 +12,7 @@ static int lua_init_nano_attachment(lua_State *L) {
int worker_id = luaL_checkinteger(L, 1);
int num_workers = luaL_checkinteger(L, 2);
NanoAttachment* attachment = InitNanoAttachment(0, worker_id, num_workers, fileno(stdout));
NanoAttachment* attachment = InitNanoAttachment(0, worker_id, num_workers, fileno(stderr));
if (!attachment) {
lua_pushnil(L);
lua_pushstring(L, "Failed to initialize NanoAttachment");