Re: [SOLVED] Re: appsession does not work in Haproxy 1.4.9

2010-11-27 Thread Willy Tarreau
Hi Hogan, On Sat, Nov 27, 2010 at 09:17:41PM +0800, Hogan Yu wrote: > Hi Willy, > > The HAproxy have worked well for about two and half days after I patched > the latest package. It seems that it fix the critical bug. Thanks a lot! I > will give you further feedback later. Excellent, thank yo

Re: [SOLVED] Re: appsession does not work in Haproxy 1.4.9

2010-11-27 Thread Hogan Yu
Hi Willy, The HAproxy have worked well for about two and half days after I patched the latest package. It seems that it fix the critical bug. Thanks a lot! I will give you further feedback later. Best Regards, Hogan On Thu, Nov 25, 2010 at 8:29 AM, Hogan Yu wrote: > Hi Willy, > > you are

Re: [SOLVED] Re: appsession does not work in Haproxy 1.4.9

2010-11-24 Thread Hogan Yu
Hi Willy, you are awesome! I am trying it now and give you feedback. Thanks! Hogan On Thu, Nov 25, 2010 at 1:46 AM, Willy Tarreau wrote: > Hi Hogan, > > On Wed, Nov 24, 2010 at 09:33:37PM +0800, Hogan Yu wrote: > > Hi Willy, > > I send you an dump core file and I sure that we have some fre

[SOLVED] Re: appsession does not work in Haproxy 1.4.9

2010-11-24 Thread Willy Tarreau
Hi Hogan, On Wed, Nov 24, 2010 at 09:33:37PM +0800, Hogan Yu wrote: > Hi Willy, > I send you an dump core file and I sure that we have some free memory on > our platform. Thank you very much for your core. I could find the issue and indeed it's not related to a memory shortage, which was the iss

Re: appsession does not work in Haproxy 1.4.9

2010-11-24 Thread Hogan Yu
Hi Willy, I send you an dump core file and I sure that we have some free memory on our platform. # free -m total used free sharedbuffers cached Mem: 16046 15919127 0365 1729 -/+ buffers/cache: 13824

Re: appsession does not work in Haproxy 1.4.9

2010-11-24 Thread Willy Tarreau
Hi Hogan, On Wed, Nov 24, 2010 at 03:32:14PM +0800, Hogan Yu wrote: > Hi Willy, > > Sorry for give your feedback late. I test it several days and it does not > work with the new two patchs. It hang two times one day. > It still get the errors as follows, > haproxy[8728]: segfault at 1e

Re: appsession does not work in Haproxy 1.4.9

2010-11-23 Thread Hogan Yu
Hi Willy, Sorry for give your feedback late. I test it several days and it does not work with the new two patchs. It hang two times one day. It still get the errors as follows, haproxy[8728]: segfault at 1e90f000 rip 003ef9c7c51a rsp 7fff80e29208 error 6 haproxy[18325]: segfault

Re: appsession does not work in Haproxy 1.4.9

2010-11-19 Thread Willy Tarreau
Hi Hogan, [I removed Cyril from the CC, he might get bored and he's on the list] On Sat, Nov 20, 2010 at 10:46:53AM +0800, Hogan Yu wrote: > Hi Willy, > I update all your suggestion > >1. compile with USE_PCRE=1 >2. set ulimit -m unlimited >3. use the two patches perfect. > Here

Re: appsession does not work in Haproxy 1.4.9

2010-11-19 Thread Hogan Yu
Hi Willy, I update all your suggestion 1. compile with USE_PCRE=1 2. set ulimit -m unlimited 3. use the two patches Here is my ulimit -a list # ulimit -a core file size (blocks, -c) unlimited data seg size (kbytes, -d) unlimited scheduling priority (-e)

Re: appsession does not work in Haproxy 1.4.9

2010-11-19 Thread hogan.yu
Hi Willy, Great thanks for your suggestion. I will try it now nad give you feedback later. Best regards, Hogan From hogan's iPhone On 2010-11-19, at 19:02, Willy Tarreau wrote: > Hi Hogan, > > I have good news. I found two bugs that could cause what you describe in > case of out of memory co

Re: appsession does not work in Haproxy 1.4.9

2010-11-19 Thread Willy Tarreau
Hi Chris, On Fri, Nov 19, 2010 at 11:25:04AM +, Chris Sarginson wrote: > Hi Willy, > > I've been following this with some interest (I'm due to roll out 1.4.9 > on a number of loadbalancers soon), and just wondered if these patches > are recommended for application even if you do build with li

Re: appsession does not work in Haproxy 1.4.9

2010-11-19 Thread Chris Sarginson
s? Cheers Chris -Original Message- From: Willy Tarreau To: Hogan Yu Cc: Cyril Bonté , haproxy@formilux.org Subject: Re: appsession does not work in Haproxy 1.4.9 Date: Fri, 19 Nov 2010 12:02:30 +0100 Hi Hogan, I have good news. I found two bugs that could cause what you describe in case

Re: appsession does not work in Haproxy 1.4.9

2010-11-19 Thread Willy Tarreau
Hi Hogan, I have good news. I found two bugs that could cause what you describe in case of out of memory conditions, and I could trigger them with your config by limiting my amount of memory. One of them is triggered by the cookie capture. It it failed to allocate memory to store the cookie, it w

Re: appsession does not work in Haproxy 1.4.9

2010-11-18 Thread Hogan Yu
Hi Wily, Thanks very much for your help. We use keepalived to switch in two server every 2 seconds and use cron job to monitor the haproxy thread in two server every 1 minute. Hope to make it very stabliable on our production server. Best Regards, Hogan On Fri, Nov 19, 2010 at 2:23 PM, Willy

Re: appsession does not work in Haproxy 1.4.9

2010-11-18 Thread Willy Tarreau
On Fri, Nov 19, 2010 at 12:09:15PM +0800, Hogan Yu wrote: > Hi Willy, > > Thanks for you detail information, I set the core dump file to unlimited > and try to get it if it hang again. and then I will try the 32bit and give > your feedback if it hang again later. Thank you very much Hogan. Just

Re: appsession does not work in Haproxy 1.4.9

2010-11-18 Thread Hogan Yu
Hi Willy, Thanks for you detail information, I set the core dump file to unlimited and try to get it if it hang again. and then I will try the 32bit and give your feedback if it hang again later. Best Regards, Hogan On Fri, Nov 19, 2010 at 4:08 AM, Willy Tarreau wrote: > Hi Hogan, > > On Thu

Re: appsession does not work in Haproxy 1.4.9

2010-11-18 Thread Willy Tarreau
Hi Hogan, On Thu, Nov 18, 2010 at 04:18:45PM +0800, Hogan Yu wrote: > Hi Willy, > > I catch a new big problem about the Haproxy after it runs two days > successfully > I add a command in my config file > > reqirep ^([^\ ]*)\ /loot/(.*)\1\ /bigloot/tutorial/index/\2 > > it replace the p

Re: appsession does not work in Haproxy 1.4.9

2010-11-18 Thread Hogan Yu
Hi Willy, I catch a new big problem about the Haproxy after it runs two days successfully I add a command in my config file reqirep ^([^\ ]*)\ /loot/(.*)\1\ /bigloot/tutorial/index/\2 it replace the path /loot/att to /bigloot/tutorial/index/att. Then the Haproxy hangs every hours and I

Re: appsession does not work in Haproxy 1.4.9

2010-11-17 Thread Hogan Yu
Hi Willy, You are right, I misunderstand the log and thanks for your patient. Best Regards, Hogan On Tue, Nov 16, 2010 at 3:03 PM, Willy Tarreau wrote: > On Tue, Nov 16, 2010 at 09:03:17AM +0800, Hogan Yu wrote: > > Hi Willy, > > Sorry for reply so late, I test my configuration according y

Re: appsession does not work in Haproxy 1.4.9

2010-11-15 Thread Willy Tarreau
On Tue, Nov 16, 2010 at 09:03:17AM +0800, Hogan Yu wrote: > Hi Willy, > Sorry for reply so late, I test my configuration according your > suggestion. It is correct that We need stunnel in front of haproxy to > decipher HTTPS. I misunderstand the configuration on https and it works. We > have lots

Re: appsession does not work in Haproxy 1.4.9

2010-11-15 Thread Hogan Yu
Hi Willy, Sorry for reply so late, I test my configuration according your suggestion. It is correct that We need stunnel in front of haproxy to decipher HTTPS. I misunderstand the configuration on https and it works. We have lots of long connection on our application server which use GWT to do th

Re: appsession does not work in Haproxy 1.4.9

2010-11-14 Thread Willy Tarreau
On Mon, Nov 15, 2010 at 09:57:08AM +0800, Hogan Yu wrote: > HI Willy, > Great thanks for you explanation. > About the second part you introduced, > In part, because right now all browsers support cookies and have done > so for the last 10 years at least. Even WAP gateways and terminals do > sup

Re: appsession does not work in Haproxy 1.4.9

2010-11-14 Thread Hogan Yu
HI Willy, Great thanks for you explanation. About the second part you introduced, In part, because right now all browsers support cookies and have done so for the last 10 years at least. Even WAP gateways and terminals do support cookies. What you may find are browsers where cookie support has

Re: appsession does not work in Haproxy 1.4.9

2010-11-12 Thread Willy Tarreau
On Sat, Nov 13, 2010 at 10:54:26AM +0800, Hogan Yu wrote: > Hi Cryil, > > Great thanks for you help. I change the nbproc to 1 and it works. > About you suggestion on the param "option http-server-close" and "option > httpclose". If i don't config it ,It still works for me. The spec saids: > By

Re: appsession does not work in Haproxy 1.4.9

2010-11-12 Thread Hogan Yu
Hi Cryil, Great thanks for you help. I change the nbproc to 1 and it works. About you suggestion on the param "option http-server-close" and "option httpclose". If i don't config it ,It still works for me. The spec saids: By default HAProxy operates in a tunnel-like mode with regards to persis

Re: appsession does not work in Haproxy 1.4.9

2010-11-12 Thread Cyril Bonté
Le vendredi 12 novembre 2010 18:16:15, Cyril Bonté a écrit : > Also, as you're manipulating headers, you need "option httpclose" or > "option server-close", else only the first request of a connection will be > modified/analysed. please read "option http-server-close" ;-) -- Cyril Bonté

Re: appsession does not work in Haproxy 1.4.9

2010-11-12 Thread Cyril Bonté
Le vendredi 12 novembre 2010 16:22:18, Hogan Yu a écrit : > Hi guys, > > Here is the access log for this bug. You should definitely remove "nbproc 3". Also, as you're manipulating headers, you need "option httpclose" or "option server-close", else only the first request of a connection will be

Re: appsession does not work in Haproxy 1.4.9

2010-11-12 Thread Hogan Yu
Hi guys, Here is the access log for this bug. Nov 12 07:16:43 localhost haproxy[18627]: 123.117.167.107:30281[12/Nov/2010:07:16:43.109] http_proxy http_proxy/server2 0/0/0/109/618 200 2505 - JSESSIONID=abciT3I4wOv6YfMmpQaXs.1 --NI 0/0/0/0/0 0/0 "GET /wap2/login.jsp HTTP/1.1" Nov 12 07:16:48 loca

appsession does not work in Haproxy 1.4.9

2010-11-12 Thread Hogan Yu
Hi guys, I am very interesting about the haproxy and try to use it as our load balancer. I want to use the appsession as the persistence method. but I got a big problem that when I disable the cookie in browser. It will lost the persistence and send me to another server sometimes. I install it by