File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ my $http_config = <<_EOC_;
33
33
end
34
34
35
35
assert(f:write(conf))
36
+ f:close()
36
37
37
38
return conf_file
38
39
end
@@ -85,6 +86,8 @@ __DATA__
85
86
else
86
87
ngx.log(ngx.WARN, out)
87
88
end
89
+ p:close()
90
+ collectgarbage("collect")
88
91
}
89
92
}
90
93
--- error_log
@@ -115,6 +118,7 @@ qr/\[error\] .*? init_by_lua:\d+: run init_by_lua/
115
118
else
116
119
ngx.log(ngx.WARN, out)
117
120
end
121
+ p:close()
118
122
119
123
local cmd = nginx .. " -p $TEST_NGINX_HTML_DIR -c " .. conf_file .. " -T"
120
124
local p, err = io.popen(cmd)
@@ -130,6 +134,8 @@ qr/\[error\] .*? init_by_lua:\d+: run init_by_lua/
130
134
else
131
135
ngx.log(ngx.WARN, out)
132
136
end
137
+ p:close()
138
+ collectgarbage("collect")
133
139
}
134
140
}
135
141
--- error_log
@@ -171,6 +177,7 @@ qr/\[error\] .*? init_by_lua:\d+: run init_by_lua/
171
177
else
172
178
ngx.log(ngx.WARN, out)
173
179
end
180
+ p:close()
174
181
175
182
local cmd = nginx .. " -p $TEST_NGINX_HTML_DIR -c " .. conf_file .. " -T"
176
183
local p, err = io.popen(cmd)
@@ -186,6 +193,8 @@ qr/\[error\] .*? init_by_lua:\d+: run init_by_lua/
186
193
else
187
194
ngx.log(ngx.WARN, out)
188
195
end
196
+ p:close()
197
+ collectgarbage("collect")
189
198
}
190
199
}
191
200
--- error_log
You can’t perform that action at this time.
0 commit comments