Bug #68420 [Com]: listen=9000 listens to ipv6 localhost instead of all addresses

From: Date: Fri, 14 Nov 2014 13:32:57 +0000
Subject: Bug #68420 [Com]: listen=9000 listens to ipv6 localhost instead of all addresses
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-188599@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68420&edit=1

 ID:                 68420
 Comment by:         vojtech dot kurka at gmail dot com
 Reported by:        sjon at hortensius dot net
 Summary:            listen=9000 listens to ipv6 localhost instead of all
                     addresses
 Status:             Open
 Type:               Bug
 Package:            FPM related
 PHP Version:        5.6.3
 Block user comment: N
 Private report:     N

 New Comment:

We experienced the same problem after upgrade to 5.5.19: our php-fpm stopped responding to all TCP
requests from nginx. Using this config:

listen = '9000'

Workaround: listen=:::9000


Previous Comments:
------------------------------------------------------------------------
[2014-11-14 10:25:04] sjon at hortensius dot net

ps specifying listen=:::9000 works fine; maybe the default should be updated to that

------------------------------------------------------------------------
[2014-11-14 10:16:07] sjon at hortensius dot net

Description:
------------
I'm very happy the ipv6 code was finally pulled and released. However; I noticed an issue where
the documentation and implementation are no longer correct. When specifying 'listen=9000';
fpm should listen on all interfaces; but it seems to listen to ipv6's localhost address only.
It works fine when explicitly specifying an ipv6 address

Expected result:
----------------
# ss -lpn|grep 9000
tcp    LISTEN     0      128                  ::1:9000                 :::*     
users:(("php-fpm",pid=8591,fd=8))

Actual result:
--------------
# ss -lpn|grep 9000
tcp    LISTEN     0      128                  :::9000                 :::*     
users:(("php-fpm",pid=8591,fd=8))


------------------------------------------------------------------------



--
Edit this bug report at https://bugs.php.net/bug.php?id=68420&edit=1


Thread (4 messages)

« previous php.bugs (#188599) next »