HAProxy validation and update library, CLI library

2014-04-29 Thread Naveen Chandra Sekhara
HI All, Just want to know is there any library to Validate and update the haproxy.cfg file. Otherwise we need to validate and update individual sections. Also is there any CLI infrastructure we can use? (GPL code) Since so many people are using, everybody is developing all these themselves. I

Re: Patch with some small memory usage fixes

2014-04-29 Thread Dmitry Sivachenko
Hello, if (groups) free(groups); I think these checks are redundant, because according to free(3): -- If ptr is NULL, no action occurs. On 29 апр. 2014 г., at 3:00, Dirkjan Bussink d.buss...@gmail.com wrote: Hi all, When building HAProxy using the Clang Static Analyzer, it found a few

Re: [ANNOUNCE] haproxy-1.5-dev24

2014-04-29 Thread Stefan
Hello Willy, As i wrote before, i had an issue with WebSocket in dev23 version: Error during WebSocket handshake: Unexpected response code: 301 I still have it in dev24 version. Rolled back to dev22 version. With regards, Stefan

Re: [ANNOUNCE] haproxy-1.5-dev24

2014-04-29 Thread Stefan
More details: This acl stopped working: acl is_web_socket hdr(Upgrade) -i WebSocket As a workaround, i can use path detection (my all websocket path starts with /ws/) acl is_web_socket path_beg /ws/ With Regards, Stefan

in uri balance, http-keep-alive broken

2014-04-29 Thread Seri
Hi, I've tested recent 1.5-dev24(a631fc8) git code. In frontend, option http-keep-alive In backend, balance uri or balance url_param option http-server-close In above configuration, server response is delayed or fail. Apr 29 17:01:31 localhost haproxy[1901]: x.x.x.x:7352

Re: [ANNOUNCE] haproxy-1.5-dev24

2014-04-29 Thread Thierry FOURNIER
On Tue, 29 Apr 2014 07:14:38 + (UTC) Stefan sufila...@gmail.com wrote: More details: This acl stopped working: acl is_web_socket hdr(Upgrade) -i WebSocket Hello, the probleme is that the -i flag doesn't run in dev23/24. This is fixed is the master branch of the git repository. If you

Re: [ANNOUNCE] haproxy-1.5-dev24

2014-04-29 Thread Stefan
Thanks With Regards, Stefan

can't get CA certificate installed correctly

2014-04-29 Thread david rene comba lareu
Hi, for some reason, i can't install the CA certificate correctly in haproxy my config is like this: bind *:443 ssl crt /home/scripts/CA/www.domain.com.pem ca-file /home/scripts/CA/rapidsslCA.crt i already tried with the primary intermediate CA and the bundled PEM version found at here:

Re: can't get CA certificate installed correctly

2014-04-29 Thread Jarno Huuskonen
Hi, On Tue, Apr 29, david rene comba lareu wrote: Hi, for some reason, i can't install the CA certificate correctly in haproxy my config is like this: bind *:443 ssl crt /home/scripts/CA/www.domain.com.pem ca-file /home/scripts/CA/rapidsslCA.crt i already tried with the primary

Re: Rule to serve /docs via. nginx not working with trailing slash

2014-04-29 Thread Nick Jennings
Hi Nenad, sorry for the delayed reply, I was having email troubles. This worked for me! (of course it was nginx) :) Thanks! Nick On Thu, Apr 24, 2014 at 2:54 PM, Nenad Merdanovic ni...@nimzo.info wrote: Hello Nick, I am pretty sure this is an nginx problem, but let's resolve it anyways

Cannot obtain needed objects from git.1wt.eu haproxy repo.

2014-04-29 Thread Brandon Perkins
Hi, For the last two days, I've been attempting to fetch (and clone, and subtree add) http://git.1wt.eu/git/haproxy.git master with little luck. Here's some output: == $ env | grep _proxy GIT_TRACE=1; GIT_CURL_VERBOSE=1 git clone -v http://git.1wt.eu/git/haproxy.git/ haprox Cloning

Re: [PATCH] FEATURE Implementing send-proxy version 2

2014-04-29 Thread David S
On Wed, Apr 23, 2014 at 4:24 PM, Willy Tarreau w...@1wt.eu wrote: On Wed, Apr 23, 2014 at 04:19:17PM -0400, David S wrote: On Wed, Apr 23, 2014 at 5:45 AM, Willy Tarreau w...@1wt.eu wrote: (...) Otherwise your patch looks fine. Do you want me to merge it ? If so, please could you

Re: [PATCH] FEATURE Implementing send-proxy version 2

2014-04-29 Thread Willy Tarreau
Hi David, On Tue, Apr 29, 2014 at 12:21:10PM -0400, David S wrote: On Wed, Apr 23, 2014 at 4:24 PM, Willy Tarreau w...@1wt.eu wrote: On Wed, Apr 23, 2014 at 04:19:17PM -0400, David S wrote: On Wed, Apr 23, 2014 at 5:45 AM, Willy Tarreau w...@1wt.eu wrote: (...) Otherwise your

add acl/map

2014-04-29 Thread Andy Walker
Regarding the add aclhttp://cbonte.github.io/haproxy-dconv/configuration-1.5.html#9.2-add%20acl, add map socket commands (and related del acl/map), as well as the newly added set-map/del-map/add-acl/del-acl within http-request/http-response Are these meant to also modify the acl/map file on

Re: Cannot obtain needed objects from git.1wt.eu haproxy repo.

2014-04-29 Thread Phil Pennock
On 2014-04-29 at 11:28 -0400, Brandon Perkins wrote: For the last two days, I've been attempting to fetch (and clone, and subtree add) http://git.1wt.eu/git/haproxy.git master with little luck. Here's some output: Fetch from http://master.formilux.org/git/people/willy/haproxy.git/ instead;

RE: option http-server-close

2014-04-29 Thread Lukas Tribus
Hi Andrey, # acl CX(custcare_cu) acl is_custcare_cu url_beg /custcare_cu # VIX-s default_backend vix backend custcare_cu balance roundrobin cookie SERVERID insert indirect nocache maxlife 24h maxidle 8h server s1cm1_cx_cu s1cm1:8088 check port 8088 cookie cx_cu3 weight 100 server

RE: in uri balance, http-keep-alive broken

2014-04-29 Thread Lukas Tribus
Hi Seri, Hi, I've tested recent 1.5-dev24(a631fc8) git code. In frontend, option http-keep-alive In backend, balance uri or balance url_param option http-server-close In above configuration, server response is delayed or fail. In a quick and unscientific test I was unable to

RE: in uri balance, http-keep-alive broken

2014-04-29 Thread Seri
Hi Lukas, I've tested in test environment, 1 client, 1 haproxy, 1 backend server. Surely, no network, backend server issues. In uri balance method, no issues happened. In uri_param balance method, issues are reproduced. My test configuration as belows, frontend http-in bind :80 acl rr

RE: in uri balance, http-keep-alive broken

2014-04-29 Thread Seri
Hi Lukas, Sorry for my mis typing!! frontend http-in bind :80 acl rr hdr(host) -i test1.a.com acl param hdr(host) -i test2.a.com use_backend bk_param if param default_backend rr backend bk_rr id 101 balance roundrobin option http-keep-alive option

Re: in uri balance, http-keep-alive broken

2014-04-29 Thread Cyril Bonté
Hi, Sorry but it's difficult to understand your test case. Le 29/04/2014 23:41, Seri a écrit : Hi Lukas, I've tested in test environment, 1 client, 1 haproxy, 1 backend server. Surely, no network, backend server issues. In uri balance method, no issues happened. In uri_param balance method,

Re: in uri balance, http-keep-alive broken

2014-04-29 Thread Cyril Bonté
Hi again, Le 30/04/2014 00:04, Cyril Bonté a écrit : Hi, Sorry but it's difficult to understand your test case. OK, this time I think I could understand your issue and reproduce it. The minimal setup I've used : defaults mode http listen test :80 balance url_param q

Re: add acl/map

2014-04-29 Thread Thierry FOURNIER
On Tue, 29 Apr 2014 12:39:43 -0500 Andy Walker a...@fbsdata.com wrote: Regarding the add aclhttp://cbonte.github.io/haproxy-dconv/configuration-1.5.html#9.2-add%20acl, add map socket commands (and related del acl/map), as well as the newly added set-map/del-map/add-acl/del-acl within