Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

Commit

Permalink
increase buffer header size to 4096 bytes
Browse files Browse the repository at this point in the history
remove setter header buffer size and hardcode 4096bytes
  • Loading branch information
Pierozi committed Nov 1, 2017
1 parent a2a5964 commit 4fd4e5d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,6 @@ class Server extends Connection
*/
protected $_request = null;



/**
* Create a Websocket server.
*
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 4fd4e5d

Please sign in to comment.