From: ben at realitychecknetwork dot com Operating system: Linux 2.6.18 PHP version: 5.2.11 PHP Bug Type: Sockets related Bug description: Impossible to increase SOMAXCONN
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 bug report at http://bugs.php.net/?id=49616&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=49616&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=49616&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=49616&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=49616&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=49616&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=49616&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=49616&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=49616&r=needscript Try newer version: http://bugs.php.net/fix.php?id=49616&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=49616&r=support Expected behavior: http://bugs.php.net/fix.php?id=49616&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=49616&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=49616&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=49616&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=49616&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=49616&r=dst IIS Stability: http://bugs.php.net/fix.php?id=49616&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=49616&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=49616&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=49616&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=49616&r=mysqlcfg