Skip to content

Conversation

legionth
Copy link
Contributor

@legionth legionth commented Mar 2, 2017

Currently only requests with a body will emit the end event ( #116 and #129).

This ensures that a completed request without a body (e.g. GET-Request) will emit an end event.

@WyriHaximus WyriHaximus requested review from WyriHaximus, clue and jsor March 2, 2017 08:25
src/Server.php Outdated
$request->emit('end');
$request->close();
return;
}
Copy link
Member

Choose a reason for hiding this comment

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

Emitting events on another instance should generally be avoided. Also, this looks somewhat similar to the code below, perhaps this can/should be unified?

@clue clue added this to the v0.6.0 milestone Mar 2, 2017
@legionth legionth force-pushed the handle-simple-requests branch from 0df5dc8 to 26fb646 Compare March 2, 2017 15:34
@legionth
Copy link
Contributor Author

legionth commented Mar 2, 2017

Ping @clue have a look at this new approach.

Copy link
Member

@clue clue left a comment

Choose a reason for hiding this comment

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

Nice, LGTM! 👍

@WyriHaximus WyriHaximus merged commit 65052b4 into reactphp:master Mar 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants