Closed clue closed 3 years ago
Updated to fix the build error on PHP < 7.4 by cleaning up any garbage memory references as also done in https://github.com/reactphp/dns/pull/118 and https://github.com/reactphp/dns/pull/160.
This is now ready for review :shipit:
This changeset improves error messages for failed connections. In particular, failed TCP/IP connections using the happy eyeballs connector (the default) or the old DNS connector will now report the hostname once at the beginning of the message and will not show its internal hostname parameter multiple times:
Likewise, we now make sure to always consistently include the URI scheme used in the error message. For instance, failed TLS connections will now include the appropriate URI scheme for the start of the message and show the underlying URI scheme for underlying TCP/IP connection issues such as this:
Builds on top of #265, #266, #267 and others such as https://github.com/clue/reactphp-redis/pull/116, https://github.com/friends-of-reactphp/mysql/pull/141 and more