Re: How to compile Nginx with zlib-ng

2023-03-27 Thread Maxim Dounin
Hello! On Mon, Mar 27, 2023 at 09:57:34PM +0400, Sergey Kandaurov wrote: > > On 24 Mar 2023, at 06:07, Maxim Dounin wrote: > > > > Hello! > > > > On Thu, Mar 23, 2023 at 09:33:19PM +0100, Richard Stanway via nginx wrote: > > > >> Yes, when using the latest zlib-ng on nginx-1.21.6 I received t

Re: How to compile Nginx with zlib-ng

2023-03-27 Thread Sergey Kandaurov
> On 24 Mar 2023, at 06:07, Maxim Dounin wrote: > > Hello! > > On Thu, Mar 23, 2023 at 09:33:19PM +0100, Richard Stanway via nginx wrote: > >> Yes, when using the latest zlib-ng on nginx-1.21.6 I received the >> alerts. Previous versions of zlib-ng have worked great after the 2021 >> patch. I

Re: How to compile Nginx with zlib-ng

2023-03-24 Thread Richard Stanway via nginx
Thanks for the patch! I've been running it for about an hour and haven't seen the preallocated memory alert since, so it's looking good here. On Fri, 24 Mar 2023 at 03:07, Maxim Dounin wrote: > > Hello! > > On Thu, Mar 23, 2023 at 09:33:19PM +0100, Richard Stanway via nginx wrote: > > > Yes, when

Re: How to compile Nginx with zlib-ng

2023-03-23 Thread Maxim Dounin
Hello! On Thu, Mar 23, 2023 at 09:33:19PM +0100, Richard Stanway via nginx wrote: > Yes, when using the latest zlib-ng on nginx-1.21.6 I received the > alerts. Previous versions of zlib-ng have worked great after the 2021 > patch. I tried to update it myself as follows based on advice of > zlib-n

Re: How to compile Nginx with zlib-ng

2023-03-23 Thread Richard Stanway via nginx
Yes, when using the latest zlib-ng on nginx-1.21.6 I received the alerts. Previous versions of zlib-ng have worked great after the 2021 patch. I tried to update it myself as follows based on advice of zlib-ng GitHub issues, while it reduced the number of alerts logged it did not completely solve th

Re: How to compile Nginx with zlib-ng

2023-03-22 Thread Lance Dockins
Thank you, Richard.  I’ll give that a shot.   I already have to do that sort of patching with a variety of other things in the build that I use so that particular adjustment isn’t too bad. Just for clarity, are you saying that the hash sizes within zlib-ng have increased since Maxim’s last patc

Re: How to compile Nginx with zlib-ng

2023-03-22 Thread Richard Stanway via nginx
I regularly build with zlib-ng, unfortunately it requires patching the zlib-ng files to enable zlib compatibility mode as nginx doesn't seem to have a way to pass options to configure. Edit "configure" in the zlib-ng directory and change the line compat=0 to compat=1. Then specify --with-zlib=/pat

Re: How to compile Nginx with zlib-ng

2023-03-22 Thread Sergey A. Osokin
Hi Lance, thanks for your question. Since this is more or less related to nginx development or new features I'd suggest to use nginx-devel mailing list instead, thank you. On Tue, Mar 21, 2023 at 04:06:00PM -0500, Lance Dockins wrote: > > Has anyone had success compiling Nginx with zlib-ng inste