Re: [PATCH] Minor : Add a sampler to extract the microsecond information of the hit date

2018-01-20 Thread Willy Tarreau
Hi Etienne, On Wed, Jan 17, 2018 at 02:02:40PM +0100, Etienne Carrière wrote: > Hi, > > I propose a patch to add a sampler that extract the microsecond part of a hit. > I had 2 ideas for implementation : > * The one in the attached patch which is a new sampler that return an > integer that is

Re[2]: [PATCH] Minor : Add a sampler to extract the microsecond information of the hit date

2018-01-17 Thread Aleksandar Lazic
Thanks for your answer. Interesting use case. Regards aleks -- Originalnachricht -- Von: "Etienne Carrière" An: "Aleksandar Lazic" Cc: haproxy@formilux.org Gesendet: 17.01.2018 23:28:40 Betreff: Re: [PATCH] Minor : Add a sampler to

Re: [PATCH] Minor : Add a sampler to extract the microsecond information of the hit date

2018-01-17 Thread Etienne Carrière
Hi, 2018-01-17 20:47 GMT+01:00 Aleksandar Lazic : (...) > Sounds interesting. > What use case have you in mind for this fetcher? > The use case is the following : we are using SPOE (http://www.haproxy.org/download/1.8/doc/SPOE.txt) + SPO protocol in a SaaS logic : Haproxy is

Re: [PATCH] Minor : Add a sampler to extract the microsecond information of the hit date

2018-01-17 Thread Aleksandar Lazic
Hi. -- Originalnachricht -- Von: "Etienne Carrière" An: haproxy@formilux.org Gesendet: 17.01.2018 14:02:40 Betreff: [PATCH] Minor : Add a sampler to extract the microsecond information of the hit date Hi, I propose a patch to add a sampler that extract

[PATCH] Minor : Add a sampler to extract the microsecond information of the hit date

2018-01-17 Thread Etienne Carrière
Hi, I propose a patch to add a sampler that extract the microsecond part of a hit. I had 2 ideas for implementation : * The one in the attached patch which is a new sampler that return an integer that is only the microsecond part of the timeval structure * A new sampler that would return a string