mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2024-12-20 10:40:13 +00:00
4ed0a3a883
Test the httpclient when the lua action timeout. The lua timeout is reached before the httpclient is ended. This test that the httpclient are correctly cleaned when destroying the hlua context. Must be backported as far as 2.5.
9 lines
211 B
Lua
9 lines
211 B
Lua
function test()
|
|
local httpclient = core.httpclient()
|
|
local response = httpclient:get{url="http://127.0.0.1", headers={ [ "Host" ] = { "localhost" } }}
|
|
|
|
end
|
|
|
|
|
|
core.register_action("test", {"tcp-req"}, test, 0)
|