KQueue: 2 or more IPv6 listen ports + HUPing causes repeated log spam

Igor Sysoev igor at sysoev.ru
Wed Jul 7 19:41:12 MSD 2010


On Wed, Jul 07, 2010 at 11:28:29AM -0400, WolfSage wrote:

> Sorry, I forgot to mention the nginx versions. 
> 
> This was tested with nginx stable all the way from versions 0.6.39 to
> latest stable 0.7.67.
> 
> I'd like to stay in the stable branch rather than run the development
> branch.

Then try the attached patch.

BTW, I'm going to declare 0.8.x as stable branch soon. Note also that
nginx development branch is much more stable than FreeBSD's HEAD vs STABLE.


-- 
Igor Sysoev
http://sysoev.ru/en/
-------------- next part --------------
Index: src/core/ngx_cycle.c
===================================================================
--- src/core/ngx_cycle.c	(revision 2977)
+++ src/core/ngx_cycle.c	(revision 2978)
@@ -868,7 +868,7 @@
         sin61 = (struct sockaddr_in6 *) sa1;
         sin62 = (struct sockaddr_in6 *) sa2;
 
-        if (sin61->sin6_port != sin61->sin6_port) {
+        if (sin61->sin6_port != sin62->sin6_port) {
             return NGX_DECLINED;
         }
 


More information about the nginx mailing list