Re: TCP/Status CLOSE_WAIT for nginx, very long time

2020-05-10 Thread q1548
Thank you, Maxim. If I use the latest nginx version with custom http module, for a socket leak, what I need check in module code? thanks. Posted at Nginx Forum: https://forum.nginx.org/read.php?2,287966,287989#msg-287989 ___ nginx mailing list nginx@ng

Re: TCP/Status CLOSE_WAIT for nginx, very long time

2020-05-10 Thread Maxim Dounin
Hello! On Wed, May 06, 2020 at 08:59:29PM -0400, q1548 wrote: > I run netstat, find one of nginx processes, its status always is CLOSE_WAIT, > never change for very long time, how to fix this? thanks. Sockets in the CLOSE_WAIT states for a long time usually indicate a socket leak. First of all

Re: Question about proxy_cache_min_uses

2020-05-10 Thread J.R.
> My concern is as follows, proxy_cache_min_uses=1 effectively caches > everything, which is too much... But proxy_cache_min_uses=2 doesn't cache > enough. I'm struggling to understand exactly how proxy_cache_min_uses works, > by setting it to 2 nginx needs to somehow know that 2 requests were made