From 2cbf06b4e0dcd75d10478c2bf46e567cf1b8058a Mon Sep 17 00:00:00 2001 From: Divarion-D Date: Tue, 23 Jun 2026 21:38:43 +0300 Subject: [PATCH] fix: ConnectionTracker == typo and Thread $process init type MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ConnectionTracker::getCapacity: `$rSettings['split_by'] == 'guar_band';` was a discarded comparison (==) where an assignment (=) was intended — the proxy maxclients→guar_band override never happened. - Thread::__construct: initialised $process (typed resource|null) to int 0; set it to null to match the property type (and its own default). --- src/core/Process/Thread.php | 2 +- src/domain/Stream/ConnectionTracker.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/Process/Thread.php b/src/core/Process/Thread.php index 56a29420..3c70a04d 100644 --- a/src/core/Process/Thread.php +++ b/src/core/Process/Thread.php @@ -42,7 +42,7 @@ class Thread { * Initialize an empty process-thread state. */ public function __construct() { - $this->process = 0; + $this->process = null; $this->buffer = ''; $this->pipes = (array) null; $this->output = ''; diff --git a/src/domain/Stream/ConnectionTracker.php b/src/domain/Stream/ConnectionTracker.php index 3e46cb8a..2980e4b4 100644 --- a/src/domain/Stream/ConnectionTracker.php +++ b/src/domain/Stream/ConnectionTracker.php @@ -56,7 +56,7 @@ class ConnectionTracker { $rRedis = RedisManager::instance(); $rFile = ($rProxy ? 'proxy_capacity' : 'servers_capacity'); if ($rSettings['redis_handler'] && $rProxy && $rSettings['split_by'] == 'maxclients') { - $rSettings['split_by'] == 'guar_band'; + $rSettings['split_by'] = 'guar_band'; } if ($rSettings['redis_handler'] && $rRedis) {