diff --git a/Server.php b/Server.php index 0495841..cdd59c3 100644 --- a/Server.php +++ b/Server.php @@ -56,8 +56,6 @@ class Server extends Connection */ protected $_request = null; - - /** * Create a Websocket server. * @@ -95,8 +93,8 @@ protected function doHandshake() $connection->enableEncryption(true, $connection::ENCRYPTION_TLS); } - $buffer = $connection->read(2048); - $request = $this->getRequest(); + $buffer = $connection->read(4096); + $request = $this->getRequest(); $request->parse($buffer); // Rfc6455.