listen=9000 listens to ipv6 localhost instead of all addresses

Bug #68420 listen=9000 listens to ipv6 localhost instead of all addresses
Submitted: 2014-11-14 10:16 UTC Modified: 2014-11-15 07:08 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:0 (0.0%)
From: sjon at hortensius dot net Assigned: remi (profile)
Status: Closed Package: FPM related
PHP Version: 5.6.3 OS:
Private report: No CVE-ID: None

 [2014-11-14 10:16 UTC] 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))

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports

 [2014-11-14 10:25 UTC] sjon at hortensius dot net

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

 [2014-11-14 13:32 UTC] vojtech dot kurka at gmail dot com

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

 [2014-11-15 07:08 UTC] remi@php.net

-Assigned To: +Assigned To: remi

 [2014-11-15 07:12 UTC] remi@php.net

-Status: Assigned +Status: Closed