diff --git a/CHANGELOG.md b/CHANGELOG.md index 81a1ff58..58181316 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,33 @@ # Changelog +## 0.6.0 (2017-04-04) + +* Feature: Add `LimitingServer` to limit and keep track of open connections + (#86 by @clue) + + ```php + $server = new Server(0, $loop); + $server = new LimitingServer($server, 100); + + $server->on('connection', function (ConnectionInterface $connection) { + $connection->write('hello there!' . PHP_EOL); + … + }); + ``` + +* Feature / BC break: Add `pause()` and `resume()` methods to limit active + connections + (#84 by @clue) + + ```php + $server = new Server(0, $loop); + $server->pause(); + + $loop->addTimer(1.0, function() use ($server) { + $server->resume(); + }); + ``` + ## 0.5.1 (2017-03-09) * Feature: Forward compatibility with Stream v0.5 and upcoming v0.6 diff --git a/README.md b/README.md index b4af8b2f..31e155ae 100644 --- a/README.md +++ b/README.md @@ -556,7 +556,7 @@ The recommended way to install this library is [through Composer](http://getcomp This will install the latest supported version: ```bash -$ composer require react/socket:^0.5.1 +$ composer require react/socket:^0.6 ``` More details about version upgrades can be found in the [CHANGELOG](CHANGELOG.md).