Skip to content

Conversation

@clue
Copy link
Member

@clueclue commented May 23, 2017

Builds on top of #187
This is also a prerequisite for upcoming changes related to #98

@clueclue added this to the v0.7.0 milestone May 23, 2017
src/Server.php Outdated
// in particular this may only fire on a later read/write attempt
// because we stop/pause reading from the connection once the
// request has been processed.
$connection->on('close', function() use ($stream){
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might as well write this as $connection->on('close', [$stream, 'close']);?

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have updated the PR accordingly (have no strong opinion here) 👍

$socket->close();
}

publicfunctiontestStreamFromRequestHandlerWillBeClosedIfConnectionClosesWhileSendingBody()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed tests by increasing test timeouts :shipit:

$socket->close();
}

publicfunctiontestStreamFromRequestHandlerWillBeClosedIfConnectionClosesButWillOnlyBeDetectedOnNextWrite()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed tests by increasing test timeouts :shipit:

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

@clue@jsor@WyriHaximus