Re: sample fetch: add bc_http_major

2018-12-07 Thread Aleksandar Lazic
Hi Jerome. Am 07.12.2018 um 15:37 schrieb Jerome Magnin: > Hi Aleks, > > On Fri, Dec 07, 2018 at 01:46:53PM +0100, Aleksandar Lazic wrote: >> Hi Jerome. >> [...] >> I suggest to use a dedicated function for that, jm2c. >> >> { "bc_http_major", smp_fetch_bc_http_major, 0, NULL, SMP_T_SINT, >>

Re: sample fetch: add bc_http_major

2018-12-07 Thread Jerome Magnin
Hi Aleks, On Fri, Dec 07, 2018 at 01:46:53PM +0100, Aleksandar Lazic wrote: > Hi Jerome. > [...] > I suggest to use a dedicated function for that, jm2c. > > { "bc_http_major", smp_fetch_bc_http_major, 0, NULL, SMP_T_SINT, > SMP_USE_L4SRV }, > If you look at src/ssl_sock.c there are several

Re: sample fetch: add bc_http_major

2018-12-07 Thread Aleksandar Lazic
Hi Jerome. Am 07.12.2018 um 10:26 schrieb Jerome Magnin: > Hi, > > the attached patch adds bc_http_major. It returns the HTTP major encoding of > the > backend connection, based on the the on-wire encoding. cool Idea ;-) I suggest to use a dedicated function for that, jm2c. {

sample fetch: add bc_http_major

2018-12-07 Thread Jerome Magnin
Hi, the attached patch adds bc_http_major. It returns the HTTP major encoding of the backend connection, based on the the on-wire encoding. Jérôme >From e0a28394ea2da5757c1e72773ab4c9fb97565a35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Magnin?= Date: Fri, 7 Dec 2018 09:03:11