fix: ConnectionTracker == typo and Thread $process init type

- 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).
This commit is contained in:
Divarion-D
2026-06-23 21:38:43 +03:00
parent 440e10fd60
commit 2cbf06b4e0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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 = '';
+1 -1
View File
@@ -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) {