I have an issue i can’t achieve to fix.
My proxy take request with a custom header to authenticate users. For reasons, some requests are rejected by the proxy with a 400 error. a show errors on the socket let me think that custom header is causing the error (i have replace sensitive data) :
# echo "show errors" | socat /var/lib/haproxy/stats stdio Total events captured on [02/Nov/2018:11:59:39.817] : 35 [02/Nov/2018:11:57:54.645] frontend http (#4): invalid request backend <NONE> (#-1), server <NONE> (#-1), event #34 src xx.xx.xx.xx:xxxx, session #8587, session flags 0x00000080 HTTP msg state MSG_RQMETH(2), msg flags 0x00000000, tx flags 0x84000000 HTTP chunk len 0 bytes, HTTP body len 0 bytes buffer flags 0x00808002, out 0 bytes, total 25 bytes pending 25 bytes, wrapping at 16384, error at position 8: 00000 MSP-CLID: xxxxxxxxxxxxxx\r\n 00023 \r\n
One thing i can’t explain, custom header is X-MSP-CLID, but the error show MSP-CLID. Is there a good reason ?
A network capture show full header as intended.
Most of the requests are well forwarded, only some are rejected
If i set option accept-invalid-http-request the problem persists
Can someone help me to sort out this issue ?