Skip to content

Conversation

@clue
Copy link
Member

@clue clue commented Jan 17, 2017

This very simple PR renames the shutdown() method to close() in order to achieve consistency throughout React's components.

The term "shutdown" is actually an implementation detail of sockets and does not really apply to closing a server socket.

FWIW, Node also uses "close".

@clue clue added this to the v0.5.0 milestone Jan 17, 2017
Copy link
Member

@jsor jsor left a comment

Choose a reason for hiding this comment

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

Although $server->shutdown() reads better than $server->close() IMHO, 👍 for consistency.

Copy link
Member

@WyriHaximus WyriHaximus left a comment

Choose a reason for hiding this comment

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

:shipit:

@clue clue merged commit f1e457d into reactphp:master Jan 27, 2017
@clue clue deleted the close branch January 27, 2017 10:44
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.

3 participants