Hi,

Le 09/07/2014 22:36, Pawel Veselov a écrit :
Hi.

I'm trying to offload compression using 1.5.1. I have these lines in
defaults section:

     compression offload
     compression algo gzip
     compression type application/json text/javascript text/html
text/xml text/csv

No compression statements are in any of the frontend/backend sections.

However, I still see the Accept-Encoding header being passed through to
the backends (verified with tcpdump). Any help with what I'm missing?

64-bit 1.5.1 2014/06/24 on 2.6.32 Linux.

You're right,
The "offload" value is not copied from the defaults, this is a one line patch. If you want, you can test the one attached.

Talking about it, I'm not sure it's a good idea to allow "compression offload" in the defaults section, as there is nothing to disable it in frontend/backend sections.
Willy, any advice ?

--
Cyril Bonté
diff --git a/src/cfgparse.c b/src/cfgparse.c
index e6e65b4..a89528a 100644
--- a/src/cfgparse.c
+++ b/src/cfgparse.c
@@ -2120,6 +2120,7 @@ int cfg_parse_listen(const char *file, int linenum, char **args, int kwm)
 			curproxy->comp = calloc(1, sizeof(struct comp));
 			curproxy->comp->algos = defproxy.comp->algos;
 			curproxy->comp->types = defproxy.comp->types;
+			curproxy->comp->offload = defproxy.comp->offload;
 		}
 
 		curproxy->grace  = defproxy.grace;

Reply via email to