Skip to content

Releases: reactphp/socket

v1.6.0

28 Aug 12:50
Compare
Choose a tag to compare
  • Feature: Support upcoming PHP 8 release.
    (#246 by @clue)

  • 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

01 Jul 12:50
Compare
Choose a tag to compare
  • 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

12 Mar 12:16
Compare
Choose a tag to compare

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 new happy_eyeballs option in Connector 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

10 Jul 10:12
Compare
Choose a tag to compare
  • Feature: Forward compatibility with upcoming stable DNS component.
    (#206 by @clue)

v1.2.1

03 Jun 09:05
Compare
Choose a tag to compare
  • Avoid uneeded fragmented TLS work around for PHP 7.3.3+ and
    work around failing test case detecting EOF on TLS 1.3 socket streams.
    (#201 and #202 by @clue)

  • Improve TLS certificate/passphrase example.
    (#190 by @jsor)

v1.2.0

07 Jan 16:13
Compare
Choose a tag to compare
  • 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 :shipit:

  • 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 dedicated assertInstanceOf() assertions.
    (#185 by @clue, #178 by @WyriHaximus and #181 by @carusogabriel)

v1.1.0

01 Oct 12:21
Compare
Choose a tag to compare
  • 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

11 Jul 14:48
Compare
Choose a tag to compare
  • 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.

v0.8.12

11 Jun 14:34
Compare
Choose a tag to compare
  • Feature: Improve memory consumption for failed and cancelled connection attempts.
    (#161 by @clue)

  • Improve test suite to fix Travis config to test against legacy PHP 5.3 again.
    (#162 by @clue)

v0.8.11

24 Apr 14:08
Compare
Choose a tag to compare
  • Feature: Improve memory consumption for cancelled connection attempts and
    simplify skipping DNS lookup when connecting to IP addresses.
    (#159 and #160 by @clue)