Public bug reported: I've an ubuntu 10.04.3 server that can't reload nginix configuration due to the following bug.
From: http://mailman.nginx.org/pipermail/nginx- devel/2010-April/000176.html The function ngx_cmp_sockaddr contained a typo which prevented nginx from reloading, because nginx tried to add a socket multiple times to an epoll descriptor. --- src/core/ngx_cycle.c~ 2009-10-26 17:22:24.000000000 +0100 +++ src/core/ngx_cycle.c 2010-04-11 21:14:43.997932783 +0200 @@ -847,7 +847,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; } If nginx listened on an IPv6 address on multiple ports (e.g. [::]:80 and [::]:443), the port is ignored and thus a socket is added multiple times, because the sockets are kept an a linked list and once a match is found the list is not searched any further and the first socket gets always selected and added via epoll_ctl. ** Affects: nginx (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/902223 Title: nginx reloading not working with IPv6 enabled To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nginx/+bug/902223/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs