Hi,
i try to test lua in haproxy and i got segfault while doing curl request :
# curl http://127.0.0.1 -H X-debug-me: yes
curl: (52) Empty reply from server
---
# gdb ./haproxy
GNU gdb (GDB) 7.4.1-debian
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or
I forgot lua file content :
# cat mylua.lua
-- a simple mirror web server
-- it generates a response whose body contains the requests headers
function mirror(txn)
local buffer =
local response =
local mydate = txn.sc:http_date(txn.f:date())
buffer = buffer ..
2 matches
Mail list logo