Re: CPU increase between ss-20140329 and ss-20140425

2014-04-26 Thread Cyril Bonté
ND DH PARAMETERS- I get roughly the same CPS (forcing haproxy to provide only DHE key exchange with the ciphers keyword) for both versions, which seems logical. I agree ;-) -- Cyril Bonté

Re: CPU increase between ss-20140329 and ss-20140425

2014-04-26 Thread Cyril Bonté
in this conditions. -- Cyril Bonté

Re: haproxy incorrectly reporting connection flags

2014-04-22 Thread Cyril Bonté
Hi Patrick, Le 23/04/2014 03:25, Patrick Hemmer a écrit : Any feedback on this? I can happily provide any additional information if needed. Didn't you see Lukas' mail ? That's exactly what he asked for ;-) -- Cyril Bonté

Re: hdr_ip occ?

2014-04-22 Thread Cyril Bonté
link ;-) http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#7.3.5-req.hdr_ip -- Cyril Bonté

[PATCH] DOC: fix fetching samples syntax

2014-04-22 Thread Cyril Bonté
The syntax used to document fetching samples with optional arguments was not always valid. This commit fixes this issue in order to allow an easier parsing of the documentation. --- doc/configuration.txt | 38 +++--- 1 file changed, 19 insertions(+), 19 deletions(-)

Re: haproxy HTML documentation

2014-04-18 Thread Cyril Bonté
hould probably contain an explicit end tag (presented as a new section or whatever). Any idea on this ? I've just added a footer to the documentation, this should help ;-) -- Cyril Bonté

Re: redirecting based on Accept-Language

2014-04-16 Thread Cyril Bonté
expression, you have the expected behavior: use_backend bk_%[req.fhdr(accept-language),\ language(de;es;fr;en,en),map(language.map)] if TRUE You're right, I missed the default value for "language" ;-) -- Cyril Bonté

Re: redirecting based on Accept-Language

2014-04-16 Thread Cyril Bonté
ue declared in the map. This is because sample_conv_q_prefered returns 0 when no matching language was found. In this case, map() is not called. Is it possible to always return 1 ? -- Cyril Bonté

Re: redirecting based on Accept-Language

2014-04-15 Thread Cyril Bonté
need to provide a matching method (for example "-m str") ? In this case, the "language" documentation also needs to be updated. -- Cyril Bonté

Re: suppress reqrep / use_backend warning

2014-04-13 Thread Cyril Bonté
# @END ignore-warnings block if TRUE block if TRUE block if TRUE Please find a quick and dirty patch to illustrate. Is this something that could be useful ? -- Cyril Bonté diff --git a/include/types/global.h b/include/types/global.h index 669ec23..cb18593 100644 --- a/include/types/global

Re: How do I used the map feature in haproxy to build massive redirect tables

2014-04-11 Thread Cyril Bonté
Hi again, Le 11/04/2014 21:30, Cyril Bonté a écrit : I see several issues : 1. In order to not break older configurations, "redirect" will not support dynamic values, "http-request redirect" does. 2. Avoid spaces between parameters (between map and hdr). 3. Parameters are d

Re: How do I used the map feature in haproxy to build massive redirect tables

2014-04-11 Thread Cyril Bonté
eak older configurations, "redirect" will not support dynamic values, "http-request redirect" does. 2. Avoid spaces between parameters (between map and hdr). 3. Parameters are declared in the wrong order. 4. The URL is not a header, you can try with "path" instead. Can you retry with : http-request redirect location %[path,map(/opt/local/etc/haproxy/redirect.map)] code 301 -- Cyril Bonté

haproxy HTML documentation

2014-04-11 Thread Cyril Bonté
of Twitter typeahead.js for the search field - Use of cdn.js to provide those frameworks instead of embedding them. If you see issues that weren't there before, please give me some feedbacks in order to fix it. -- Cyril Bonté

Re: Weird timing values in http log

2014-04-08 Thread Cyril Bonté
ate whether requests came from the same session or not. The accept date reported in the logs corresponds to the end of the previous request, and the request time corresponds to the time spent waiting for a new request. (...)" -- Cyril Bonté

Re: haproxy intermittently not connecting to backend

2014-04-02 Thread Cyril Bonté
chk GET /ping default-server inter 15s fastinter 1s server i-6eaf724d 10.230.23.64:80 check observe layer4 server i-84d931a5 10.230.42.8:80 check observe layer4 -- Cyril Bonté

Re: BUG/FEATURE? http-request always applied if backend not available

2014-04-01 Thread Cyril Bonté
is a second level of proxy in your test. Am I wrong ? -- Cyril Bonté

Re: BUG/FEATURE? http-request always applied if backend not available

2014-04-01 Thread Cyril Bonté
-Transport-Security headers in this second case ? -- Cyril Bonté

Re: BUG/FEATURE? http-request always applied if backend not available

2014-04-01 Thread Cyril Bonté
Le 01/04/2014 23:42, Bertrand Jacquin a écrit : Hi Cyril, D'ar meurzh 01 a viz Ebrel 2014 e 23 eur 35, « Cyril Bonté » he deus skrivet : If bk_local has server UP in the farm, and request look like https://203.0.113.42/__bar, then everything is fine, request is nicely handled by bk_

Re: BUG/FEATURE? http-request always applied if backend not available

2014-04-01 Thread Cyril Bonté
poll : pref=200, test result OK select : pref=150, test result OK Total: 3 (3 usable), will use epoll. Thanks. -- Cyril Bonté

Re: acl rand help

2014-03-31 Thread Cyril Bonté
#x27;rand' in ACL expression 'rand() config line: acl test_rand rand() ge 10 I've tried a few others: acl test_rand rand ge 10 acl test_rand rand(100) ge 10 Give a try to the current snapshot ;-) -- Cyril Bonté

Re: Endianness issue with integer stick table and peers

2014-03-12 Thread Cyril Bonté
Both of my peers are identical and running Ubuntu 12.04 LTS x86_64 and HAProxy 1.5-dev22. Please upgrade to the current snapshot, it should solve your issue : http://haproxy.1wt.eu/git?p=haproxy.git;a=commit;h=9a60ff9cb60cb11fbf6db932dcfbc3fe810212d8 -- Cyril Bonté

Re: Backend ipv6 : server always DOWN

2014-03-10 Thread Cyril Bonté
4 Version : 1.4.18-0ubuntu1.2 Do I miss something ? Yes, haproxy 1.4 doesn't support IPv6 addresses for servers. http://cbonte.github.io/haproxy-dconv/configuration-1.4.html#server -- Cyril Bonté

Re: Fwd: rewrite URI help

2014-03-06 Thread Cyril Bonté
tunnel mode is used for other accesses than /slideshare). Btw, don't mix "option http-server-close" and "option httpclose". -- Cyril Bonté

Re: Fwd: rewrite URI help

2014-03-06 Thread Cyril Bonté
haproxy log contains the original request, not the rewritten one. If you want to see the rewritten URL you need to look at the backend server which is receiving the request. -Patrick " -- Cyril Bonté

Re: 503 errors from HTTP statistics proxy

2014-02-20 Thread Cyril Bonté
dev16 that were fixed in dev17. -- Cyril Bonté

Re: Google Maps API reverse proxy

2014-02-20 Thread Cyril Bonté
with : http-request set-header Host maps.googleapis.com Otherwise googleapis receives "Host: localhost". -- Cyril Bonté

Re: Google Maps API reverse proxy

2014-02-19 Thread Cyril Bonté
alk in https to maps.googleapis.com. For that, you must add the "ssl" keyword on the server line, and maybe "verify none" with recent 1.5-dev snapshots. -- Cyril Bonté

[PATCH] DOC: fix a typo on http-server-close and encapsulate options with double-quotes

2014-02-19 Thread Cyril Bonté
Add a missing "r" on "option http-server-close" and put double-quotes everywhere to ease keywords parsing. --- doc/configuration.txt | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/doc/configuration.txt b/doc/configuration.txt index b6a30de..a8ff839 100

Re: http responses randomly getting RSTs

2014-02-19 Thread Cyril Bonté
Hi again and sorry for spamming ;-) Le 19/02/2014 22:51, Cyril Bonté a écrit : Hi again, Le 19/02/2014 22:44, Cyril Bonté a écrit : Also, as a side note, your configuration is not optimal : - you are using both "option httpclose" and "option http-server-close", you shou

Re: http responses randomly getting RSTs

2014-02-19 Thread Cyril Bonté
Hi again, Le 19/02/2014 22:44, Cyril Bonté a écrit : Also, as a side note, your configuration is not optimal : - you are using both "option httpclose" and "option http-server-close", you should make a choice (or use "option http-keep-alive" in recent haproxy 1.5

Re: http responses randomly getting RSTs

2014-02-19 Thread Cyril Bonté
ou should avoid the use of "stats enable" in the defaults section. [1] http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#option%20dontlognull -- Cyril Bonté

[PATCH 2/2] BUG/MINOR: cfgparse: segfault while parsing a peer in an invalid peers section

2014-02-15 Thread Cyril Bonté
A segfault may occur when a peer is parsed while the peers section is invalid, for example because the peers section name was forgotten in the configuration file. Example : peers peer LB1 127.0.0.1:1234 peer LB2 127.0.0.1:1235 The parser saves a static pointer on the current section par

[PATCH] BUG/MEDIUM: peers: fix key consistency for integer stick tables

2014-02-15 Thread Cyril Bonté
Peers with integer stick tables are breaking the keys received. This is due to the fact that the sender converts the key with htonl() but the receiver doesn't convert the value back to its original format. Peers appeared in haproxy-1.5, no backport is needed. --- src/peers.c | 8 ++-- 1 file

Re: Emulating Active/passing application clustering with HAProxy

2014-02-15 Thread Cyril Bonté
backported to haproxy 1.4. -- Cyril Bonté

Re: Emulating Active/passing application clustering with HAProxy

2014-02-15 Thread Cyril Bonté
ckend will be the active one. Once "s-active" is DOWN or an entry exists in the "passive" table, the "passive" backend will be used. To switch back to the "active" backend : # echo "clear table passive" | socat stdio /var/run/haproxy.sock -- Cyril Bonté

Re: Healthcheck via https

2014-01-20 Thread Cyril Bonté
o I miss? Best regards, Tony Postfach fast voll? Jetzt kostenlos E-Mail Adresse @t-online.de sichern und endlich Platz für tausende Mails haben. http://www.t-online.de/email-kostenlos -- Cyril Bonté

Re: issue with acl pattern -m match on a string starting with space or containing a comma, with 1.5-dev21

2014-01-17 Thread Cyril Bonté
Le 17/01/2014 21:06, PiBa-NL a écrit : Though the proper section is a bit harder to find a "search for keyword" doesn't give any results.. This is in my to do list, I hope to find time to address this soon. -- Cyril Bonté

Re: Bug report for latest dev release, 1.5.21, segfault when using http expect string x and large 404 page (includes GDB output)

2014-01-17 Thread Cyril Bonté
lose this bug, that's a good thing ;-) -- Cyril Bonté

Re: Bug report for latest dev release, 1.5.21, segfault when using http expect string x and large 404 page (includes GDB output)

2014-01-16 Thread Cyril Bonté
sl $ curl http://localhost/ ... epoll_wait(3, {}, 200, 0) = 0 epoll_wait(3, {}, 200, 0) = 0 epoll_wait(3, {}, 200, 0) = 0 epoll_wait(3, {}, 200, 0) = 0 epoll_wait(3, {}, 200, 0) = 0 ... -- Cyril Bonté

Re: Bug report for latest dev release, 1.5.21, segfault when using http expect string x and large 404 page (includes GDB output)

2014-01-14 Thread Cyril Bonté
top where I can reproduce the segfault, I confirm it doesn't crash anymore once the patch is applied (which was predictable from the quick test I made this afternoon). Let's see if it's OK for Steve too ;-) -- Cyril Bonté

Re: Bug report for latest dev release, 1.5.21, segfault when using http expect string x and large 404 page (includes GDB output)

2014-01-13 Thread Cyril Bonté
Hi again Willy, Le 14/01/2014 00:51, Cyril Bonté a écrit : I don't know if this is of any help because I don't have enough details yet, but I jut reproduced segfaults while playing with the configuration provided by Steve. To reproduce it on my laptop, it's quite easy : ge

Re: Bug report for latest dev release, 1.5.21, segfault when using http expect string x and large 404 page (includes GDB output)

2014-01-13 Thread Cyril Bonté
reproduce a segfault, I'll try to make some more tests tomorrow (only after work). But I believe you'll already find the reason before ;-) -- Cyril Bonté

Re: HA-Proxy version 1.5-dev21-51437d2 2013/12/29 sticky ssl sessons are not working in my environment

2014-01-04 Thread Cyril Bonté
erver ensures that these things are working I will tried source ip based affinity/stickiness and all worked as expected (http://blog.exceliance.fr/2011/07/12/send-user-to-the-same-backend-for-both-http-and-https/) Yes sticking on the source ip is a better idea (even if it is not perfect for all u

Re: Immediate health check on startup / after reload

2014-01-02 Thread Cyril Bonté
a=commit;h=3759f98d441cc457edf6637c4ba123ca4f42217f A second one that included a minimal threshold : http://haproxy.1wt.eu/git?p=haproxy.git;a=commit;h=2c43a1e2f05161cac4f88c9e9c01bd16f1b2cb5b -- Cyril Bonté

Re: SNI suffix matching support ("req_ssl_sni_end") for HaProxy 1.5 [patch enclosed]

2013-12-30 Thread Cyril Bonté
hub.io/haproxy-dconv/configuration-1.5.html#7.1 Without any patch, "req_ssl_sni_end" is the equivalent to "req.ssl_sni -m end". (note that several keywords have been deprecated, this is the case for req_ssl_sni, in preference to req.ssl_sni). -- Cyril Bonté

Re: [ANNOUNCE] haproxy-1.5-dev20

2013-12-16 Thread Cyril Bonté
nice ! I didn't expect this so fast ;-) It's applied it on my test server, I can confirm it works well, thanks ! -- Cyril Bonté

Re: [ANNOUNCE] haproxy-1.5-dev20

2013-12-16 Thread Cyril Bonté
totally useless :-) Same here, then I updated to apply the last patches. For now, the only thing I've noticed is that when haproxy uses a keep-alive timeout greater than the one on the backend, the connection will stay in CLOSE_WAIT state until the haproxy timeout expires. -- Cyril Bonté

Re: Compile warning on OS X

2013-12-15 Thread Cyril Bonté
tion level is greater than 0 too). _FORTIFY_SOURCE=2 looks to become the default for distribution packagers. Maybe we could decide to enforce _FORTIFY_SOURCE to 0 in the Makefile. -- Cyril Bonté

Re: Haproxy rate limit per matching request

2013-11-01 Thread Cyril Bonté
said. The important thing was to add : tcp-request content reject if !HTTP > Pushing the stick-table and tracking/rejecting operations back to > backend definition solved my problem. Indeed, this is another way to wait for HTTP data to be complete, as a HTTP frontend will use the backend only once the headers are received. Thanks for sharing. -- Cyril Bonté

Re: Haproxy rate limit per matching request

2013-10-28 Thread Cyril Bonté
didn't realized that the behaviour was documented. Well, I hope that Przemyslaw's issue is now gone, then. -- Cyril Bonté

Re: Haproxy rate limit per matching request

2013-10-24 Thread Cyril Bonté
, used:1 0xc50fa4: key=1 use=0 exp=177602 http_req_cnt=2 $ curl "localhost:9000/?SID=1" OK # table: app, type: integer, size:204800, used:1 0xc50fa4: key=1 use=0 exp=155563 http_req_cnt=3 $ curl "localhost:9000/?SID=1" curl: (52) Empty reply from server This is not the right way to fix this, but maybe it can help Willy or someone at Exceliance to find one. -- Cyril Bonté

Re: haproxy dumps core

2013-10-23 Thread Cyril Bonté
where the header is added. -- Cyril Bonté

Re: Proxy Protocol Patch for HAProxy 1.4

2013-10-20 Thread Cyril Bonté
I'm aware of are those from Cyril Bonté and concern the accept side. I think a backport to act on the send side would be harder to implement though you may want to attempt it. If it's just for an internal policy of deploying only stable versions, we're still working hard trying

Re: Redirects between ACL targetted backends

2013-10-20 Thread Cyril Bonté
bably prefer "option httpclose" instead of "http-server-close", depending on your traffic. -- Cyril Bonté

Re: Problem with httpchk option and keepAlive

2013-07-29 Thread Cyril Bonté
[1] http://cbonte.github.io/haproxy-dconv/configuration-1.4.html#option%20http-server-close [2] http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#on-marked-down -- Cyril Bonté

Re: X-Forwarded-For or proxy protocol

2013-07-21 Thread Cyril Bonté
ub.com/cbonte/haproxy-patches/blob/master/proxy-protocol/haproxy-1.4-proxy-protocol.patch It's a backport of the Proxy Protocol (only the "accept-proxy side") for HAProxy 1.4.We use it on a lot of platforms even if we plan to ugprade to HAProxy 1.5 (and we're also about to use the aloha appliance from Exceliance). -- Cyril Bonté

Re: option contstats broken since 1.3.16

2013-07-21 Thread Cyril Bonté
s, always the same way. I must say that at the moment I have no idea yet what the best solution is :-/ Regards, Willy -- Cyril Bonté diff --git a/src/session.c b/src/session.c index 0a6b130..057cb13 100644 --- a/src/session.c +++ b/src/session.c @@ -693,6 +693,10 @@ void session_process_counters(

option contstats broken since 1.3.16

2013-07-21 Thread Cyril Bonté
haproxy 1.4, counters could be updated at the end of stream_sock_read() (then we should always initialize si->private to provide a pointer to the current session). Do you see a better way to do this ? Tell me if you prefer an initial patch, it's sometimes better than explanations ;-) -- Cyril Bonté

Re: Missing forwardfor header?

2013-07-08 Thread Cyril Bonté
0.0.0:8086 stats uri / stats auth github: stats hide-version listen monitoring 0.0.0.0:8087 mode health ## Hoping this helps. -- Cyril Bonté

Re: [ANNOUNCE] haproxy-1.5-dev19 and 1.4.24 (security update)

2013-06-17 Thread Cyril Bonté
short story, after discussing with Willy, we decided not to include it directly in haproxy. This will let us introduce some improvements in the configuration file syntax after 1.5 is released. -- Cyril Bonté

Re: CPU spike after restarting with -sf

2013-06-10 Thread Cyril Bonté
ach time a new stable version of haproxy is available, I update the patch. Maybe it can help you too. -- Cyril Bonté

Re: HTTP 502 errors when backend returns 302

2013-06-07 Thread Cyril Bonté
defined by tune.maxrewrite. By default, half of the buffer is reserved. http://cbonte.github.io/haproxy-dconv/configuration-1.5.html#tune.maxrewrite Simon -Original Message- From: Cyril Bonté [mailto:cyril.bo...@free.fr] Sent: 07 June 2013 19:04 To: Simon Green Cc: 'ha

Re: HTTP 502 errors when backend returns 302

2013-06-07 Thread Cyril Bonté
tter "option http-server-close" (don't forget also to add a "timeout http-keep-alve"). But honestly, you should really fix the application to prevent those many headers duplications. You'll always have trouble with such responses. Thanks in advance, Simon -- Cyril Bonté

Re: Haproxy issues with rspirep

2013-05-29 Thread Cyril Bonté
words, IPs, ...) ? Are you sure you really want the "ssl_fc" condition here ? Reference : http://blog.exceliance.fr/2013/02/26/ssl-offloading-impact-on-web-applications/ Regards Syed -- Cyril Bonté

Re: Add X-Forwarded-For

2013-05-09 Thread Cyril Bonté
to rename the CloudFlare header (no changes were required in backends, where varnish and apache+mod_rpaf are used). Hope this helps. -- Cyril Bonté

Re: VS: Haparoxy hangs in one minute on config reload

2013-04-26 Thread Cyril Bonté
ve fixed it now in 1.4. In fact 1.5 already does this so no change was needed there. Thanks ! That was fast, as usual :-) I'll provide them a new package which includes this patch. -- Cyril Bonté

Re: VS: Haparoxy hangs in one minute on config reload

2013-04-25 Thread Cyril Bonté
s of TIME_WAIT sockets which cannot be reopened for 2 minutes. Don't worry, I prepared them for such a conclusion ;-) -- Cyril Bonté

Re: VS: Haparoxy hangs in one minute on config reload

2013-04-24 Thread Cyril Bonté
hem soon. Aside of their analysis, I wonder if it's possible to introduce a new option "check-nolinger". This would let users choose one or the other behaviour. -- Cyril Bonté

[PATCH] MINOR: stats: remove the autofocus on the scope input field

2013-04-18 Thread Cyril Bonté
commit 88c278fadf provided a new input field on the statistics page which was focused by default. The autofocus prevent to scroll down the page with the keyboard immediately afterloading it, without the need to leave that field. It also interfered with "stats refresh" by scrolling up to this field

proxy name filtering introduced in haproxy 1.5

2013-04-16 Thread Cyril Bonté
without having to leave the box. Also, in case someone uses "stats refresh", it can become quickly painful : each refresh, the browser will scroll up to the box, which is annoying when you want to follow some values in the middle of the statistics page ;-) Are you OK for this modification ? -- Cyril Bonté

Re: [ANNOUNCE] haproxy-1.4.23

2013-04-03 Thread Cyril Bonté
unless we expressly use the v1.4.23 tag. It prevents my bot to generate the html documentation for 1.4.23 ;-) -- Cyril Bonté

Re: Intermittent success of rspirep

2013-03-26 Thread Cyril Bonté
. And thanks to Cyril for pinging me again on this subject which I initially missed! Great ! I didn't have time to analyze the issue since my last comment. I'm happy you found a fix so quickly, because I definitly missed this update issue and went far from it :-) -- Cyril Bonté

Re: Intermittent success of rspirep

2013-03-13 Thread Cyril Bonté
Hi all, Le 12/03/2013 12:38, David Coulson a écrit : On 3/12/13 7:31 AM, Cyril Bonté wrote: I'm sorry to say that you've certainly met a bug while combining http-send-name-header (which is a bit tricky in the code) and ssl ciphering on servers. This is a case that has not been

Re: Intermittent success of rspirep

2013-03-12 Thread Cyril Bonté
er outgoing connections ? Disabling it could be a quick fix to your issue. -- Cyril Bonté

Re: Per-server reqirep within backend

2013-03-11 Thread Cyril Bonté
thub.com/haproxy-dconv/configuration-1.5.html#http-send-name-header -- Cyril Bonté

Re: Selectively enable session persistence

2013-02-21 Thread Cyril Bonté
requests like : GET / HTTP/1.1 Host: foo.bar Also when using layer7 acls, don't forget to use "option httpclose" or "option http-server-close", otherwise the acls will only match the first request of a HTTP keepalive connection. Hope this helps. -- Cyril Bonté

Re: client keep-alive when servers

2013-02-01 Thread Cyril Bonté
t one : http://marc.info/?t=12701162342&r=1&w=2 The issue was fixed in tomcat 6.0.27 and 5.5.29/ Cheers -- Cyril Bonté

Re: Disable server in stat page triggers 503

2013-01-15 Thread Cyril Bonté
Le 15/01/2013 09:24, Willy Tarreau a écrit : On Tue, Jan 15, 2013 at 09:09:22AM +0100, Cyril Bonté wrote: Hi Igor, Le 15/01/2013 09:00, Igor a écrit : Hi, conf like: listen admin bind 127.0.0.1:11199 stats enable stats hide-version stats uri /ha-stats

Re: Disable server in stat page triggers 503

2013-01-15 Thread Cyril Bonté
iated defaults section. Please remove any password if you have. Willy -- Cyril Bonté

Re: strange issue with HAproxy thinking nodes are up

2013-01-03 Thread Cyril Bonté
k request ;-) You can have a look to the example provided in the documentation for more details : http://cbonte.github.com/haproxy-dconv/configuration-1.4.html#option%20httpchk Thanks in advance. -Zachary -- Cyril Bonté

Re: Need your help for error message "too many redirects"

2012-12-17 Thread Cyril Bonté
And I don't talk about frameworks that require something else than "X-Forwarded-Proto" ;-) I hope this will help a bit. -- Cyril Bonté

Re: git repository unavailable

2012-11-17 Thread Cyril Bonté
Le 17/11/2012 11:17, Cyril Bonté a écrit : Hi Willy, Since yesterday, the git repository is unavailable, producing "504 Gateway Time-out". I realize I'm not clear. I'm talking about the git web interface (http://haproxy.1wt.eu/git/?p=haproxy.git), not the git reposito

git repository unavailable

2012-11-17 Thread Cyril Bonté
ed recently. So, I wonder if there's not a bug somewhere in the sessions counter. Can you have a look at this ? Is there really 2 opened connections since yesterday ? Thanks ;-) -- Cyril Bonté

Re: multiple conditions in "use_backend"

2012-11-13 Thread Cyril Bonté
implicit in haproxy : use_backend server1 if server1_head myip use_backend server2 if server2_head myip -- Cyril Bonté

[PATCH] DOC: compression: add some details and clean up the formatting

2012-11-11 Thread Cyril Bonté
commit 82fe75c1 provided useful details in its log message. We should report part of them in the documentation to know which algorithms are available. This patch also makes some formatting cleanups (including a line outside the compression scope, which exceeded 80 chars). --- doc/configuration.tx

[PATCH 2/2] MINOR: zlib: fix potential uninitialized variable when freeing zlib

2012-11-10 Thread Cyril Bonté
The compiler emits a warning on free_zlib(), due to the "pool" variable that can be used unitialized. We now initialize the variable and test its value to remove this warning. --- src/compression.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/compression.c b

[PATCH 1/2] BUILD: report zlib support in haproxy -vv

2012-11-10 Thread Cyril Bonté
Compression algorithms are not always supported depending on build options. "haproxy -vv" now reports if zlib is supported and lists compression algorithms also supported. --- src/compression.c |2 +- src/haproxy.c | 20 2 files changed, 21 insertions(+), 1 deletion(

gzip compression and bytes_read logged

2012-11-10 Thread Cyril Bonté
the number of bytes sent to the client (after compression or any other new feature) - %Bu [u for unmodified] = the number of bytes that should be sent to the client without any compression (the current %B behaviour) - and maybe another value to log the compression ratio (%Cr ?). -- Cyril Bonté

Re: option web-socket-chk

2012-11-07 Thread Cyril Bonté
/ -- Cyril Bonté

Re: [PATCH] BUG: fix garbage data when http-send-name-header replaces an existing header

2012-11-01 Thread Cyril Bonté
This patch is invalid, a new one replaces it. Cheers. -- Cyril Bonté

[PATCH] BUG: fix garbage data when http-send-name-header replaces an existing header

2012-11-01 Thread Cyril Bonté
This patch is an attempt to prevent sending garbage data when http-send-name-header replaced existing headers in the request. http-send-name-header is applied late in the request processing. The buffer is already ready to be sent to the backend server. When headers are removed, the data length is

Re: http-send-name-header Host

2012-11-01 Thread Cyril Bonté
a cleaner patch to Willy, as I made a mistake while moving the code : a comment line also moved while it shouldn't. -- Cyril Bonté

Re: http-send-name-header Host

2012-11-01 Thread Cyril Bonté
on stays in the file, you can send it off-list to Cyril and I. Mmmh yes, indeed I could reproduce issues. Michael, is it possible to retry with the patch attached ? It's nearly the same as before, except that the delta is calculated after inserting the new header. Thanks, Willy

[PATCH] BUG: fix garbage data when http-send-name-header replaces an existing header

2012-11-01 Thread Cyril Bonté
This patch is an attempt to prevent sending garbage data when http-send-name-header replaced existing headers in the request. http-send-name-header is applied late in the request processing. The buffer is already ready to be sent to the backend server. When headers are removed, the data length is

Re: http-send-name-header Host

2012-11-01 Thread Cyril Bonté
Hi again, Le 01/11/2012 12:25, Willy Tarreau a écrit : On Thu, Nov 01, 2012 at 12:18:04PM +0100, Cyril Bonté wrote: I'm making some tests, forging requests. I'm observing something weird with haproxy-1.4 (not with haproxy-1.5). Using "http-send-name-header Host", in some co

Re: http-send-name-header Host

2012-11-01 Thread Cyril Bonté
W, you did not remove the Host header from the request, so two of them are emitted. Maybe depending on the request, your server matches one or another value. Would you please add the following to your configuration to clean the things up (as disgusting it can look like) : reqidel ^Host: Willy -- Cyril Bonté

Re: [PATCH] MEDIUM: http: accept IPv6 values with (s)hdr_ip acl

2012-10-25 Thread Cyril Bonté
tch addresses between square brackets such as [2001:7a8:363c::2] and also stop before an optional port number. But that's not as much important as what you fixed so I'm applying your fix now. I agree, that's why I didn't provide a patch for smp_fetch_url_ip (and url2sa) immedia

[PATCH] MEDIUM: http: accept IPv6 values with (s)hdr_ip acl

2012-10-24 Thread Cyril Bonté
Commit ceb4ac9c states that IPv6 values are accepted by "hdr_ip" acl, but the code didn't allow it. This patch provides the ability to accept IPv6 values. --- src/proto_http.c | 23 ++- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/src/proto_http.c b/src/prot

[PATCH] BUG/MAJOR: fix a segfault on option http_proxy and url_ip acl

2012-10-24 Thread Cyril Bonté
url2sa() mistakenly uses "addr" as a reference. This causes a segfault when option http_proxy or url_ip are used. This bug was introduced in haproxy 1.5 and doesn't need to be backported. --- src/standard.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/standard.c

Re: hdr_ip/url_ip/urlp_ip don't support IPv6 values

2012-10-24 Thread Cyril Bonté
patch in a few minutes : this bug causes a segfault as soon as url2sa() is called. It concerns both "option http_proxy" and "url_ip". -- Cyril Bonté

<    1   2   3   4   5   6   7   8   >