Re: http_first_req not working with http2

2019-06-04 Thread Willy Tarreau
On Tue, Jun 04, 2019 at 10:32:19AM -0400, Patrick Hemmer wrote: > The use case was that I was trying to log SSL data (via a Lua script) when > the connection is first established. If the frontend is operating in http > mode (as opposed to tcp), we can only apply actions on receipt of a request, >

Re: http_first_req not working with http2

2019-06-04 Thread Patrick Hemmer
*From:* Willy Tarreau [mailto:w...@1wt.eu] *Sent:* Tuesday, June 4, 2019, 10:08 EDT *To:* Patrick Hemmer *Cc:* haproxy@formilux.org *Subject:* http_first_req not working with http2 Hi Patrick, On Mon, Jun 03, 2019

Re: http_first_req not working with http2

2019-06-04 Thread Willy Tarreau
Hi Patrick, On Mon, Jun 03, 2019 at 05:21:26PM -0400, Patrick Hemmer wrote: > As subject says, it appears that the http_first_req sample is not working > with http2. Indeed, the first request in H1 is special in that it is not automatically retryable. In H2 it's different, all requests are

Re: http_first_req not working with http2

2019-06-03 Thread Patrick Hemmer
*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

http_first_req not working with http2

2019-06-03 Thread Patrick Hemmer
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