Browse Source

Merge pull request #96 from CismonX/master

fix udp
walkor 9 năm trước cách đây
mục cha
commit
fc7cb0d333
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  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 {