OPTIM: lua: don't add "Connection: close" on the response
authorWilly Tarreau <w@1wt.eu>
Wed, 23 Aug 2017 09:37:48 +0000 (11:37 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 23 Aug 2017 14:11:38 +0000 (16:11 +0200)
commitee1bdd5a036117e9d038ee6338f206fc9294d523
tree7f7c63b51ca110ef7358e8ab0d5a9959351abfae
parenta329463655af8bc3e286f50c437727f21865b550
OPTIM: lua: don't add "Connection: close" on the response

Haproxy doesn't need this anymore, we're wasting cycles checking for
a Connection header in order to add "Connection: close" only in the
1.1 case so that haproxy sees it and removes it. All tests were run
in 1.0 and 1.1, with/without the request header, and in the various
keep-alive/close modes, with/without compression, and everything works
fine. It's worth noting that this header was inherited from the stats
applet and that the same cleanup probably ought to be done there as
well.
src/hlua.c