Skip to content

Commit 34381d9

Browse files
committed
Prepare v1.1.0 release
1 parent 212206e commit 34381d9

File tree

2 files changed

+27
-1
lines changed

2 files changed

+27
-1
lines changed

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
11
# Changelog
22

3+
## 1.1.0 (2018-10-01)
4+
5+
* Feature: Improve error reporting for failed connection attempts and improve
6+
cancellation forwarding during DNS lookup, TCP/IP connection or TLS handshake.
7+
(#168, #169, #170, #171, #176 and #177 by @clue)
8+
9+
All error messages now always contain a reference to the remote URI to give
10+
more details which connection actually failed and the reason for this error.
11+
Accordingly, failures during DNS lookup will now mention both the remote URI
12+
as well as the DNS error reason. TCP/IP connection issues and errors during
13+
a secure TLS handshake will both mention the remote URI as well as the
14+
underlying socket error. Similarly, lost/dropped connections during a TLS
15+
handshake will now report a lost connection instead of an empty error reason.
16+
17+
For most common use cases this means that simply reporting the `Exception`
18+
message should give the most relevant details for any connection issues:
19+
20+
```php
21+
$promise = $connector->connect('tls://example.com:443');
22+
$promise->then(function (ConnectionInterface $conn) use ($loop) {
23+
// …
24+
}, function (Exception $e) {
25+
echo $e->getMessage();
26+
});
27+
```
28+
329
## 1.0.0 (2018-07-11)
430

531
* First stable LTS release, now following [SemVer](https://semver.org/).

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1354,7 +1354,7 @@ This project follows [SemVer](https://semver.org/).
13541354
This will install the latest supported version:
13551355

13561356
```bash
1357-
$ composer require react/socket:^1.0
1357+
$ composer require react/socket:^1.1
13581358
```
13591359

13601360
See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.

0 commit comments

Comments
 (0)