]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: log: t_idle (%Ti) is not set for some requests
authorRian McGuire <rian.mcguire@stileeducation.com>
Tue, 24 Apr 2018 14:19:21 +0000 (11:19 -0300)
committerWilly Tarreau <w@1wt.eu>
Wed, 25 Apr 2018 06:59:23 +0000 (08:59 +0200)
commit89fcb7d929283e904cabad58de495d62fc753da2
treeb63ba3322fe516163839a3061a10642431c7b736
parent45be38c9c7ba2b20806f2b887876db4fb5b9457c
BUG/MINOR: log: t_idle (%Ti) is not set for some requests

If TCP content inspection is used, msg_state can be >= HTTP_MSG_ERROR
the first time http_wait_for_request is called. t_idle was being left
unset in that case.

In the example below :
     stick-table type string len 64 size 100k expire 60s
     tcp-request inspect-delay 1s
     tcp-request content track-sc1 hdr(X-Session)

%Ti will always be -1, because the msg_state is already at HTTP_MSG_BODY
when http_wait_for_request is called for the first time.

This patch should backported to 1.8 and 1.7.
src/proto_http.c