Skip to content

Commit

Permalink
Fix error
Browse files Browse the repository at this point in the history
see #175
  • Loading branch information
walkor authored Nov 22, 2018
1 parent f248808 commit 592f72c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Engine/Protocols/SocketIO.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 592f72c

Please sign in to comment.