File tree 2 files changed +29
-1
lines changed
2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
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
+
3
31
## 0.5.1 (2017-03-09)
4
32
5
33
* Feature: Forward compatibility with Stream v0.5 and upcoming v0.6
Original file line number Diff line number Diff line change @@ -556,7 +556,7 @@ The recommended way to install this library is [through Composer](http://getcomp
556
556
This will install the latest supported version:
557
557
558
558
``` bash
559
- $ composer require react/socket:^0.5.1
559
+ $ composer require react/socket:^0.6
560
560
```
561
561
562
562
More details about version upgrades can be found in the [ CHANGELOG] ( CHANGELOG.md ) .
You can’t perform that action at this time.
0 commit comments