#49616 [Opn]: Impossible to increase SOMAXCONN

From: Date: Tue, 22 Sep 2009 09:38:32 +0000
Subject: #49616 [Opn]: Impossible to increase SOMAXCONN
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-142664@lists.php.net to get a copy of this message
ID: 49616 Updated by: sjoerd@php.net 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

« previous php.bugs (#142664) next »