Skip to content

Commit 8bcba56

Browse files
committed
Prepare v0.6.0 release
1 parent 390c71b commit 8bcba56

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

CHANGELOG.md

+28
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
# Changelog
22

3+
## 0.6.0 (2017-04-04)
4+
5+
* Feature: Add `LimitingServer` to limit and keep track of open connections
6+
(#86 by @clue)
7+
8+
```php
9+
$server = new Server(0, $loop);
10+
$server = new LimitingServer($server, 100);
11+
12+
$server->on('connection', function (ConnectionInterface $connection) {
13+
$connection->write('hello there!' . PHP_EOL);
14+
15+
});
16+
```
17+
18+
* Feature / BC break: Add `pause()` and `resume()` methods to limit active
19+
connections
20+
(#84 by @clue)
21+
22+
```php
23+
$server = new Server(0, $loop);
24+
$server->pause();
25+
26+
$loop->addTimer(1.0, function() use ($server) {
27+
$server->resume();
28+
});
29+
```
30+
331
## 0.5.1 (2017-03-09)
432

533
* Feature: Forward compatibility with Stream v0.5 and upcoming v0.6

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ The recommended way to install this library is [through Composer](http://getcomp
556556
This will install the latest supported version:
557557

558558
```bash
559-
$ composer require react/socket:^0.5.1
559+
$ composer require react/socket:^0.6
560560
```
561561

562562
More details about version upgrades can be found in the [CHANGELOG](CHANGELOG.md).

0 commit comments

Comments
 (0)