Releases: reactphp/socket
v0.8.10
-
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
-
Feature: Support explicitly choosing TLS version to negotiate with remote side
by respectingcrypto_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
v0.8.7
-
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
usingext-event
(ExtEventLoop
). -
Improve test suite by testing against PHP 7.2
(#140 by @carusogabriel)
v0.8.6
-
Feature: Add Unix domain socket (UDS) support to
Server
withunix://
URI scheme
and add advancedUnixServer
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
-
Fix: Work around PHP bug with Unix domain socket (UDS) paths for Mac OS X
(#123 by @andig) -
Fix: Fix
SecureServer
to returnnull
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)
v0.8.4
-
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
v0.8.2
-
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
-
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)