Releases: reactphp/socket
v1.6.0
-
Feature: Change default socket backlog size to 511.
(#242 by @clue) -
Fix: Fix closing connection when cancelling during TLS handshake.
(#241 by @clue) -
Fix: Fix blocking during possible
accept()
race condition
when multiple socket servers listen on same socket address.
(#244 by @clue) -
Improve test suite, update PHPUnit config and add full core team to the license.
(#243 by @SimonFrings and #245 by @WyriHaximus)
v1.5.0
-
Feature / Fix: Improve error handling and reporting for happy eyeballs and
immediately try next connection when one connection attempt fails.
(#230, #231, #232 and #233 by @clue)Error messages for failed connection attempts now include more details to
ease debugging. Additionally, the happy eyeballs algorithm has been improved
to avoid having to wait for some timers to expire which significantly
improves connection setup times (in particular when IPv6 isn't available). -
Improve test suite, minor code cleanup and improve code coverage to 100%.
Update to PHPUnit 9 and skip legacy TLS 1.0 / TLS 1.1 tests if disabled by
system. Run tests on Windows and simplify Travis CI test matrix for Mac OS X
setup and skip all TLS tests on legacy HHVM.
(#229, #235, #236 and #238 by @clue and #239 by @SimonFrings)
v1.4.0
A major new feature release, see release announcement.
-
Feature: Add IPv6 support to
Connector
(implement "Happy Eyeballs" algorithm to support IPv6 probing).
IPv6 support is turned on by default, use newhappy_eyeballs
option inConnector
to toggle behavior.
(#196, #224 and #225 by @WyriHaximus and @clue) -
Feature: Default to using DNS cache (with max 256 entries) for
Connector
.
(#226 by @clue) -
Add
.gitattributes
to exclude dev files from exports and some minor code style fixes.
(#219 by @reedy and #218 by @mmoreram) -
Improve test suite to fix failing test cases when using new DNS component,
significantly improve test performance by awaiting events instead of sleeping,
exclude TLS 1.3 test on PHP 7.3, run tests on PHP 7.4 and simplify test matrix.
(#208, #209, #210, #217 and #223 by @clue)
v1.3.0
v1.2.1
v1.2.0
-
Feature / Fix: Improve TLS 1.3 support.
(#186 by @clue)TLS 1.3 is now an official standard as of August 2018! 🎉
The protocol has major improvements in the areas of security, performance, and privacy.
TLS 1.3 is supported by default as of OpenSSL 1.1.1.
For example, this version ships with Ubuntu 18.10 (and newer) by default, meaning that recent installations support TLS 1.3 out of the box -
Fix: Avoid possibility of missing remote address when TLS handshake fails.
(#188 by @clue) -
Improve performance by prefixing all global functions calls with
\
to skip the look up and resolve process and go straight to the global function.
(#183 by @WyriHaximus) -
Update documentation to use full class names with namespaces.
(#187 by @clue) -
Improve test suite to avoid some possible race conditions,
test against PHP 7.3 on Travis and
use dedicatedassertInstanceOf()
assertions.
(#185 by @clue, #178 by @WyriHaximus and #181 by @carusogabriel)
v1.1.0
-
Feature: Improve error reporting for failed connection attempts and improve
cancellation forwarding during DNS lookup, TCP/IP connection or TLS handshake.
(#168, #169, #170, #171, #176 and #177 by @clue)All error messages now always contain a reference to the remote URI to give
more details which connection actually failed and the reason for this error.
Accordingly, failures during DNS lookup will now mention both the remote URI
as well as the DNS error reason. TCP/IP connection issues and errors during
a secure TLS handshake will both mention the remote URI as well as the
underlying socket error. Similarly, lost/dropped connections during a TLS
handshake will now report a lost connection instead of an empty error reason.For most common use cases this means that simply reporting the
Exception
message should give the most relevant details for any connection issues:$promise = $connector->connect('tls://example.com:443'); $promise->then(function (ConnectionInterface $conn) use ($loop) { // … }, function (Exception $e) { echo $e->getMessage(); });
v1.0.0
- First stable LTS release, now following SemVer.
We'd like to emphasize that this component is production ready and battle-tested.
We plan to support all long-term support (LTS) releases for at least 24 months,
so you have a rock-solid foundation to build on top of.
Contains no other changes, so it's actually fully compatible with the v0.8.12 release.