Skip to content

Commit 6302d47

Browse files
tests: NGINX_TEST_CHECK_LEAK detects memoryleak because nginx can not free resolver ctx quickly.
This was introduce in commit acd5364 which is use to resovle double free of resolver ctx. This issue happens only when nginx can not get any reply from the dns server until timeout.
1 parent 94dd3ac commit 6302d47

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

t/127-uthread-kill.t

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ lua clean up the timer for pending ngx.sleep
139139
=== TEST 3: kill pending resolver
140140
--- config
141141
resolver 127.0.0.2:12345;
142+
resolver_timeout 5ms;
142143
location /lua {
143144
content_by_lua '
144145
local function f()

0 commit comments

Comments
 (0)