------------------------------------------------------------------------
*From:* Patrick Hemmer [mailto:hapr...@stormcloud9.net]
*Sent:* Monday, June 3, 2019, 17:21 EDT
*To:* haproxy@formilux.org
*Subject:* http_first_req not working with http2
As subject says, it appears that the http_first_req sample is not
working with http2.
Config:
frontend f1
bind :8000
option http-use-htx
log-format http_first_req=%[http_first_req]
With `curl http://localhost:8000`
Outputs:
<30>Jun 3 17:16:36 haproxy[47767]: http_first_req=1
Where as,
Config:
frontend f1
bind :8000 proto h2
option http-use-htx
log-format http_first_req=%[http_first_req]
With `curl --http2-prior-knowledge http://localhost:8000`
Outputs:
<30>Jun 3 17:16:51 haproxy[47829]: http_first_req=0
-Patrick
Oh, forgot the version. 1.9.8
-Patrick