215
=== TEST 9: ngx.ctx leaks with ngx.exec + log_by_lua
222
log_by_lua 'ngx.log(ngx.WARN, "ctx.foo = ", ngx.ctx.foo)';
239
=== TEST 10: memory leaks with ngx.ctx + ngx.req.set_uri + log_by_lua
244
ngx.req.set_uri("/f", true)
246
log_by_lua 'ngx.log(ngx.WARN, "ctx.foo = ", ngx.ctx.foo)';
263
=== TEST 11: ngx.ctx + ngx.exit(ngx.ERROR) + log_by_lua
270
log_by_lua 'ngx.log(ngx.WARN, "ngx.ctx = ", ngx.ctx.foo)';
282
=== TEST 12: ngx.ctx + ngx.exit(200) + log_by_lua
290
log_by_lua 'ngx.log(ngx.WARN, "ctx.foo = ", ngx.ctx.foo)';
303
=== TEST 13: ngx.ctx + ngx.redirect + log_by_lua
310
log_by_lua 'ngx.log(ngx.WARN, "ngx.ctx.foo = ", 32)';
314
--- response_body_like: 302 Found
323
=== TEST 14: set ngx.ctx before internal redirects performed by other nginx modules
327
ngx.ctx.foo = "hello world";
343
lua release ngx.ctx at ref
347
=== TEST 15: set ngx.ctx before internal redirects performed by other nginx modules (with log_by_lua)
351
ngx.ctx.foo = "hello world";
368
lua release ngx.ctx at ref
372
=== TEST 16: set ngx.ctx before simple uri rewrite performed by other nginx modules
375
set_by_lua $a 'ngx.ctx.foo = "hello world"; return 1';
391
lua release ngx.ctx at ref