-
Notifications
You must be signed in to change notification settings - Fork 75
Set header buffer size #74
base: master
Are you sure you want to change the base?
Conversation
Discussion happens in #73. |
Server.php
Outdated
* | ||
* @var int | ||
*/ | ||
protected $headerLength = 2048; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed in #73, remove this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With these modifications, we will solve most of the issue while redesigning the Hoa\Http
library.
Server.php
Outdated
* @param int $length | ||
* @return void | ||
*/ | ||
public function setHeaderBufferSize($length) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed in #73, remove this.
Server.php
Outdated
@@ -89,7 +106,7 @@ public function __construct( | |||
protected function doHandshake() | |||
{ | |||
$connection = $this->getConnection(); | |||
$buffer = $connection->read(2048); | |||
$buffer = $connection->read($this->headerLength); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discussed in #73, just increase to 4096
.
remove setter header buffer size and hardcode 4096bytes
872eb20
to
4fd4e5d
Compare
ping @Hywan |
Refer to #73
This first proposal are implement with set method.
Implement by
Zformat
seems to me bit excessive for the case.We should also define as a constructor argument, but like in future we plane to make this auto detected by
Hoa\Http
. Is not suitable to change the constructor interface.