From d7a4edc24ba38f18535b8c8371e67e8b09ae1973 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 2 Nov 2020 18:36:32 +0100 Subject: [PATCH] Continued: - non-incoming sockets are always skipped (and advanced to next one) - updated core framework MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Roland Häder --- .../hub/classes/listener/class_BaseListener.php | 12 +++++++++++- core | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/application/hub/classes/listener/class_BaseListener.php b/application/hub/classes/listener/class_BaseListener.php index 52d92a55d..87206dd4b 100644 --- a/application/hub/classes/listener/class_BaseListener.php +++ b/application/hub/classes/listener/class_BaseListener.php @@ -308,7 +308,17 @@ abstract class BaseListener extends BaseHubSystem implements Visitable { // Then abort here /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-LISTENER: socketInstance=NULL - EXIT!', strtoupper($this->getProtocolName()))); return; - } // END - if + } elseif ($socketInstance->getSocketType() != StorableSocket::CONNECTION_TYPE_INCOMING) { + // Advance to next + $iteratorInstance->next(); + + // Socket is not incoming socket, may happen in current iterator implementation + /* NOISY-DEBUG: */ self::createDebugInstance(__CLASS__, __LINE__)->debugOutput(sprintf('%s-LISTENER: socketInstance->socketType=%s is not wanted - EXIT!', strtoupper($this->getProtocolName()), $socketInstance->getSocketType())); + return; + } + + // @TODO Unfinished: + /* DEBUG-DIE: */ die(sprintf('[%s:%d]: socketInstance=%s', __METHOD__, __LINE__, print_r($socketInstance, TRUE))); // Advance to next $iteratorInstance->next(); diff --git a/core b/core index b4a83b158..1a5a49c27 160000 --- a/core +++ b/core @@ -1 +1 @@ -Subproject commit b4a83b1583b9b3947633bbaf62b25883bfc3f9ea +Subproject commit 1a5a49c27fafcab503f496cfae071374e6d739df -- 2.39.5