php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: sjon at hortensius dot net
New email:
PHP Version: OS:

 

 [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
Automatic comment on behalf of remi
Revision: http://git.php.net/?p=php-src.git;a=commit;h=1d9bb287c566425a9ab4b8de62940565fe357270
Log: Fixed Bug #68420 listen=9000 listens to ipv6 localhost instead of all addresses
 [2014-11-15 07:12 UTC] remi@php.net
-Status: Assigned +Status: Closed
 [2014-11-18 20:34 UTC] ab@php.net
Automatic comment on behalf of remi
Revision: http://git.php.net/?p=php-src.git;a=commit;h=1d9bb287c566425a9ab4b8de62940565fe357270
Log: Fixed Bug #68420 listen=9000 listens to ipv6 localhost instead of all addresses
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 08 18:01:27 2024 UTC