ID: 49616
Updated by: [email protected]
Reported By: ben at realitychecknetwork dot com
Status: Open
Bug Type: Sockets related
Operating System: Linux 2.6.18
PHP Version: 5.2.11
New Comment:
PHP uses the SOMAXCONN from sys/socket.h at compile time.
Previous Comments:
------------------------------------------------------------------------
[2009-09-21 20:22:24] ben at realitychecknetwork dot com
Description:
------------
Impossible to increase SOMAXCONN value by updating system OS variable.
PHP must be compiled with --enable-sockets for this bug to be produced.
OS setting updated with:
# sysctl -w net.core.somaxconn=2048
net.core.somaxconn = 2048
PHP will always return 128 for SOMAXCONN and will not respect the OS
setting. Additionally, it will ignore a define statement in PHP code and
return 128 as well.
Reproduce code:
---------------
define("SOMAXCONN", 2048);
echo SOMAXCONN;
Expected result:
----------------
Should return 2048
Actual result:
--------------
Returns 128
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=49616&edit=1