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

Commit 4fd4e5d

Browse files
committed
increase buffer header size to 4096 bytes
remove setter header buffer size and hardcode 4096bytes
1 parent a2a5964 commit 4fd4e5d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Server.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ class Server extends Connection
5656
*/
5757
protected $_request = null;
5858

59-
60-
6159
/**
6260
* Create a Websocket server.
6361
*
@@ -95,8 +93,8 @@ protected function doHandshake()
9593
$connection->enableEncryption(true, $connection::ENCRYPTION_TLS);
9694
}
9795

98-
$buffer = $connection->read(2048);
99-
$request = $this->getRequest();
96+
$buffer = $connection->read(4096);
97+
$request = $this->getRequest();
10098
$request->parse($buffer);
10199

102100
// Rfc6455.

0 commit comments

Comments
 (0)