]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/handler/network/tcp/class_TcpRawDataHandler.php
RawDataInputStream does now throw exceptions if the BASE64-encoded data is not well...
[hub.git] / application / hub / main / handler / network / tcp / class_TcpRawDataHandler.php
index 2f485eaae75d47adc0fbab3536b3d09651f27141..23bb556dd0e9cc0dee55956d9c0af919ee1cd27a 100644 (file)
@@ -99,10 +99,15 @@ class TcpRawDataHandler extends BaseRawDataHandler implements Networkable {
                } elseif (empty($rawData)) {
                        // The peer did send nothing to us which is now being ignored
                        return;
+               } else {
+                       /*
+                        * All is fine at this point. So it is okay to add the raw data to
+                        * the stacker. Here it doesn't matter if the raw data is a
+                        * well-formed BASE64-encoded message with start and markers. This
+                        * will be checked later on.
+                        */
+                       $this->addRawDataToStacker($rawData);
                }
-
-               // Add the raw data to the stacker
-               $this->addRawDataToStacker($rawData);
        }
 }