Sfoglia il codice sorgente

Merge pull request #96 from CismonX/master

fix udp
walkor 9 anni fa
parent
commit
fc7cb0d333
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      Worker.php

+ 3 - 0
Worker.php

@@ -1553,6 +1553,9 @@ class Worker
             if ($this->protocol) {
                 $parser      = $this->protocol;
                 $recv_buffer = $parser::decode($recv_buffer, $connection);
+                // Discard bad packets.
+                if ($recv_buffer === false)
+                    return true;
             }
             ConnectionInterface::$statistics['total_request']++;
             try {