]> git.mxchange.org Git - hub.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Mon, 2 Nov 2020 17:36:32 +0000 (18:36 +0100)
committerRoland Häder <roland@mxchange.org>
Mon, 2 Nov 2020 17:36:32 +0000 (18:36 +0100)
- non-incoming sockets are always skipped (and advanced to next one)
- updated core framework

Signed-off-by: Roland Häder <roland@mxchange.org>
application/hub/classes/listener/class_BaseListener.php
core

index 52d92a55d377aa3db0182ddc89d7d3079bfbfd3d..87206dd4b681892967d9041e7b00cbc26d8318eb 100644 (file)
@@ -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 b4a83b1583b9b3947633bbaf62b25883bfc3f9ea..1a5a49c27fafcab503f496cfae071374e6d739df 160000 (submodule)
--- a/core
+++ b/core
@@ -1 +1 @@
-Subproject commit b4a83b1583b9b3947633bbaf62b25883bfc3f9ea
+Subproject commit 1a5a49c27fafcab503f496cfae071374e6d739df