Nginx cookie map regex remove + character

2017-03-24 Thread c0nw0nk
So this is my map map $http_cookie $session_id_value { default ''; "~^.*[0-9a-f]{32}\=(?[\w]{1,}+).*$" $session_value; } The cookie name = a MD5 sum the full / complete value of the cookie seems to cut of at a plus + symbol What would the correct regex to be to ignore / remove + symbols from "s

Re: HTTP To TCP Conversion

2017-03-24 Thread nginxsantos
Thank you. Can you please share more info on this please. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,273098,273181#msg-273181 ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: 100% CPU use in ngx_http_finalize_connection

2017-03-24 Thread Richard Stanway
Thanks Maxim, everything is looking great after the patch. On Fri, Mar 24, 2017 at 4:26 PM, Maxim Dounin wrote: > Hello! > > On Fri, Mar 24, 2017 at 02:11:12PM +0100, Richard Stanway wrote: > >> Hi Maxim, >> Thanks for the quick patch! I've applied it to our server and will >> monitor the results

Re: 100% CPU use in ngx_http_finalize_connection

2017-03-24 Thread Maxim Dounin
Hello! On Fri, Mar 24, 2017 at 02:11:12PM +0100, Richard Stanway wrote: > Hi Maxim, > Thanks for the quick patch! I've applied it to our server and will > monitor the results. Usually the problem starts to occur within 1-2 > hours of a restart, so I'll post again later today with an update. A ve

nginx-1.11.12

2017-03-24 Thread Maxim Dounin
Changes with nginx 1.11.12 24 Mar 2017 *) Bugfix: nginx might hog CPU; the bug had appeared in 1.11.11. -- Maxim Dounin http://nginx.org/ ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman

Re: 100% CPU use in ngx_http_finalize_connection

2017-03-24 Thread Richard Stanway
Hi Maxim, Thanks for the quick patch! I've applied it to our server and will monitor the results. Usually the problem starts to occur within 1-2 hours of a restart, so I'll post again later today with an update. On Fri, Mar 24, 2017 at 2:03 PM, Maxim Dounin wrote: > Hello! > > On Fri, Mar 24, 201

Re: 100% CPU use in ngx_http_finalize_connection

2017-03-24 Thread Maxim Dounin
Hello! On Fri, Mar 24, 2017 at 01:31:35PM +0100, Richard Stanway wrote: > Hello, > I recently moved our site to a new server running Linux 4.9, Debian > 8.7 64 bit with nginx 1.11.11 from the nginx repository. Our config is > straightforward - epoll, a few proxy backends and a few fastcgi > backe

Re: 100% CPU use in ngx_http_finalize_connection

2017-03-24 Thread Richard Stanway
I caught another loop, this time using nginx-debug with source. It seems it is stuck in a loop trying to ngx_pfree something that is already freed? I don't really understand the source enough to know what's going on, but the parameters to ngx_pfree are the same every time and the code keeps looping

100% CPU use in ngx_http_finalize_connection

2017-03-24 Thread Richard Stanway
Hello, I recently moved our site to a new server running Linux 4.9, Debian 8.7 64 bit with nginx 1.11.11 from the nginx repository. Our config is straightforward - epoll, a few proxy backends and a few fastcgi backends, a handful of vhosts, some with HTTP2, geoip module loaded. No AIO, no threads,