haproxy/reg-tests/lua/b00001.lua
Frédéric Lécaille b083c8316b REGEST/MINOR: Add reg testing files.
Reg testing files for a LUA bug fixed by commit 83ed5d5 ("BUG/MINOR:
lua: Bad HTTP client request duration.")
2018-08-24 14:50:30 +02:00

9 lines
256 B
Lua

core.register_service("foo.http", "http", function(applet)
core.msleep(10)
applet:start_response()
end)
core.register_service("foo.tcp", "tcp", function(applet)
applet:send("HTTP/1.1 200 OK\r\nTransfer-encoding: chunked\r\n\r\n0\r\n\r\n")
end)