Skip to content

Releases: reactphp/socket

v0.8.10

28 Feb 09:33
Compare
Choose a tag to compare
  • Feature: Update DNS dependency to support loading system default DNS
    nameserver config on all supported platforms
    (/etc/resolv.conf on Unix/Linux/Mac/Docker/WSL and WMIC on Windows)
    (#152 by @clue)

    This means that connecting to hosts that are managed by a local DNS server,
    such as a corporate DNS server or when using Docker containers, will now
    work as expected across all platforms with no changes required:

    $connector = new Connector($loop);
    $connector->connect('intranet.example:80')->then(function ($connection) {
        // …
    });

v0.8.9

18 Jan 11:30
Compare
Choose a tag to compare
  • Feature: Support explicitly choosing TLS version to negotiate with remote side
    by respecting crypto_method context parameter for all classes.
    (#149 by @clue)

    By default, all connector and server classes support TLSv1.0+ and exclude
    support for legacy SSLv2/SSLv3. As of PHP 5.6+ you can also explicitly
    choose the TLS version you want to negotiate with the remote side:

    // new: now supports 'crypto_method` context parameter for all classes
    $connector = new Connector($loop, array(
        'tls' => array(
            'crypto_method' => STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT
        )
    ));
  • Minor internal clean up to unify class imports
    (#148 by @clue)

v0.8.8

06 Jan 12:14
Compare
Choose a tag to compare
  • Improve test suite by adding test group to skip integration tests relying on
    internet connection and fix minor documentation typo.
    (#146 by @clue and #145 by @cn007b)

v0.8.7

24 Dec 11:30
Compare
Choose a tag to compare
  • Fix: Fix closing socket resource before removing from loop
    (#141 by @clue)

    This fixes the root cause of an uncaught Exception that only manifested
    itself after the recent Stream v0.7.4 component update and only if you're
    using ext-event (ExtEventLoop).

  • Improve test suite by testing against PHP 7.2
    (#140 by @carusogabriel)

v0.8.6

18 Nov 16:49
Compare
Choose a tag to compare
  • Feature: Add Unix domain socket (UDS) support to Server with unix:// URI scheme
    and add advanced UnixServer class.
    (#120 by @andig)

    // new: Server now supports "unix://" scheme
    $server = new Server('unix:///tmp/server.sock', $loop);
    
    // new: advanced usage
    $server = new UnixServer('/tmp/server.sock', $loop);
  • Restructure examples to ease getting started
    (#136 by @clue)

  • Improve test suite by adding forward compatibility with PHPUnit 6 and
    ignore Mac OS X test failures for now until Travis tests work again
    (#133 by @Gabriel-Caruso and #134 by @clue)

v0.8.5

23 Oct 21:48
Compare
Choose a tag to compare
  • Fix: Work around PHP bug with Unix domain socket (UDS) paths for Mac OS X
    (#123 by @andig)

  • Fix: Fix SecureServer to return null URI if server socket is already closed
    (#129 by @clue)

  • Improve test suite by adding forward compatibility with PHPUnit v5 and
    forward compatibility with upcoming EventLoop releases in tests and
    test Mac OS X on Travis
    (#122 by @andig and #125, #127 and #130 by @clue)

  • Readme improvements
    (#118 by @jsor)

v0.8.4

16 Sep 17:17
Compare
Choose a tag to compare
  • Feature: Add FixedUriConnector decorator to use fixed, preconfigured URI instead
    (#117 by @clue)

    This can be useful for consumers that do not support certain URIs, such as
    when you want to explicitly connect to a Unix domain socket (UDS) path
    instead of connecting to a default address assumed by an higher-level API:

    $connector = new FixedUriConnector(
        'unix:///var/run/docker.sock',
        new UnixConnector($loop)
    );
    
    // destination will be ignored, actually connects to Unix domain socket
    $promise = $connector->connect('localhost:80');

v0.8.3

08 Sep 14:22
Compare
Choose a tag to compare
  • Feature: Reduce memory consumption for failed connections
    (#113 by @valga)

  • Fix: Work around write chunk size for TLS streams for PHP < 7.1.14
    (#114 by @clue)

v0.8.2

25 Aug 09:10
Compare
Choose a tag to compare
  • Feature: Update DNS dependency to support hosts file on all platforms
    (#112 by @clue)

    This means that connecting to hosts such as localhost will now work as
    expected across all platforms with no changes required:

    $connector = new Connector($loop);
    $connector->connect('localhost:8080')->then(function ($connection) {
        // …
    });

v0.8.1

15 Aug 08:13
Compare
Choose a tag to compare
  • Feature: Forward compatibility with upcoming EventLoop v1.0 and v0.5 and
    target evenement 3.0 a long side 2.0 and 1.0
    (#104 by @clue and #111 by @WyriHaximus)

  • Improve test suite by locking Travis distro so new defaults will not break the build and
    fix HHVM build for now again and ignore future HHVM build errors
    (#109 and #110 by @clue)

  • Minor documentation fixes
    (#103 by @christiaan and #108 by @hansott)