Re: Compression with LUA response

2025-04-05 Thread Willy Tarreau
Hi Olivier, On Mon, Mar 31, 2025 at 10:01:13AM +0200, Olivier D wrote: > Hello there ! > > I developed a lua action for HAProxy (v3.1) that returns a full http > response without any backend. > For this I'm using txn:done{}. > It's working great, with great performances too (+30k/sec queries hand

Re: Compression with LUA response

2025-04-03 Thread Olivier D
Hello, Le mer. 2 avr. 2025 à 14:00, Christopher Faulet a écrit : > Another solution is to set a variable in your lua action to redirect the > request > to a lua service if it is set. For instance: >http-request lua.myscript if !static_content >http-request use-service my-service.lua if {

Re: Compression with LUA response

2025-04-02 Thread Christopher Faulet
Le 02/04/2025 à 1:37 PM, Olivier D a écrit : Hi, Le mer. 2 avr. 2025 à 09:10, Christopher Faulet > a écrit : In fact, in your case, it is expected to have no compression. You abort the request analysis, skipping this way the response analysis. It is equivale

Re: Compression with LUA response

2025-04-02 Thread Olivier D
Hi, Le mer. 2 avr. 2025 à 09:10, Christopher Faulet a écrit : > In fact, in your case, it is expected to have no compression. You abort > the > request analysis, skipping this way the response analysis. It is > equivalent to > what happens with an "http-request deny". The compression is performe

Re: Compression with LUA response

2025-04-02 Thread Christopher Faulet
Le 31/03/2025 à 1:46 PM, Olivier D a écrit : Hello, thanks for the quick reply ! Le lun. 31 mars 2025 à 10:35, Willy Tarreau mailto:w...@1wt.eu>> a écrit :   Compression is disabled when:     * the request does not advertise a supported compression algorithm in the       "Accep

Re: Compression with LUA response

2025-03-31 Thread Olivier D
Hello, thanks for the quick reply ! Le lun. 31 mars 2025 à 10:35, Willy Tarreau a écrit : > Compression is disabled when: > * the request does not advertise a supported compression algorithm in > the > "Accept-Encoding" header > * the response message is not HTTP/1.1 or above >