diff --git a/src/Engine/Protocols/SocketIO.php b/src/Engine/Protocols/SocketIO.php index 97ce131..054b0c5 100644 --- a/src/Engine/Protocols/SocketIO.php +++ b/src/Engine/Protocols/SocketIO.php @@ -15,7 +15,7 @@ public static function input($http_buffer, $connection) $pos = strpos($http_buffer, "\r\n\r\n"); if(!$pos) { - if(strlen($http_buffer)>=TcpConnection::$maxPackageSize) + if(strlen($http_buffer) >= $connection->maxPackageSize) { $connection->close("HTTP/1.1 400 bad request\r\n\r\nheader too long"); return 0;