Skip to content

Releases: amphp/socket

2.0.0 Beta 9

11 Jan 04:55
v2.0.0-beta.9
a70c9ee
Compare
Choose a tag to compare
2.0.0 Beta 9 Pre-release
Pre-release
  • Fixed compatibility with v2.0 of amphp/dns
  • Fixed DnsException being thrown from DnsSocketConnector if DNS resolution failed. A ConnectException will be thrown instead with the DnsException as the previous exception
  • Fixed TLS state being incorrect in ResourceSocket if TLS setup fails

2.0.0 Beta 8

08 Jan 18:24
v2.0.0-beta.8
b059ae6
Compare
Choose a tag to compare
2.0.0 Beta 8 Pre-release
Pre-release
  • Fixed compatibility with v2.0 of amphp/byte-stream by updating ResourceSocket to implement Traversable.

2.0.0 Beta 7

07 Nov 22:32
v2.0.0-beta.7
b86b45b
Compare
Choose a tag to compare
2.0.0 Beta 7 Pre-release
Pre-release
  • Added compatibility with Revolt v1.x
  • Improved accept stack traces for debugging
  • Fixed InternetAddress::fromString always failing (#94)

2.0.0 Beta 6

03 Apr 17:37
v2.0.0-beta.6
e13c35a
Compare
Choose a tag to compare
2.0.0 Beta 6 Pre-release
Pre-release

Update for Closable interface being moved from amphp/byte-stream to amphp/amp.

  • SocketServer and DatagramSocket now extend Amp\Closable instead of Amp\ByteStream\Closable.

2.0.0 Beta 5

31 Mar 21:41
v2.0.0-beta.5
Compare
Choose a tag to compare
2.0.0 Beta 5 Pre-release
Pre-release
  • Fixed compatibility with systems not defining EAGAIN, e.g. Windows

2.0.0 Beta 4

28 Mar 16:42
v2.0.0-beta.4
b1e6ce0
Compare
Choose a tag to compare
2.0.0 Beta 4 Pre-release
Pre-release
  • Updated interfaces extending ClosableStream (which was renamed to Closable in amphp/byte-stream) to include the onClose method which was added to the interface.

  • SocketAddress has been changed to an interface with two implementations - InternetAddress and UnixAddress. These can be differentiated using SocketAddress::getType(), which returns an enum SocketAddressType with cases Unix and Internet.

  • SocketAddress static constructors have been relocated as functions in the Amp\Socket\SocketAddress namespace.

  • DnsSocketConnector now tries each host returned from a DNS query a single time before failing. Retrying the list is accomplished through a new connector implementation, RetrySocketConnector that can be configured to retry a given number of times with an exponential backoff between attempts.

  • Max attempts has been removed from ConnectContext in favor of a constructor parameter to RetrySocketConnector.

  • Added SocketServerFactory interface for creating SocketServer instances, along with an implementation ResourceSocketServerFactory.

  • EncryptableSocket::getTlsState() now returns an enum TlsState with cases corresponding to the prior constants defined in EncryptableSocket, which have been removed.

2.0.0 Beta 3

23 Feb 00:08
v2.0.0-beta.3
Compare
Choose a tag to compare
2.0.0 Beta 3 Pre-release
Pre-release
  • Require PHP 8.1+
  • Add ServerSocket::getBindContext()
  • Require BindContext in ResourceSocketServer::__construct()
  • Add ServerTlsContext::fromServerResource()
  • Improve DnsSocketConnector error messages to include IP addresses
  • Automatically determine DNS type if bindTo option is used for connections

2.0.0 Beta 2

03 Feb 23:11
v2.0.0-beta.2
Compare
Choose a tag to compare
2.0.0 Beta 2 Pre-release
Pre-release
  • Update to revolt/event-loop 0.2.x

2.0.0 Beta 1

18 Dec 21:09
v2.0.0-beta.1
Compare
Choose a tag to compare
2.0.0 Beta 1 Pre-release
Pre-release
  • Based on fibers instead of promises, so return types changed to avoid Promise
  • Default to TLSv1.2+ instead of TLSv1.0+
  • Added connectTls function
  • Added bindDatagram function
  • Added ResourceDatagramSocket and DatagramSocket interface
  • Renamed createPair function to createSocketPair
  • Renamed connector function to socketConnector
  • Renamed Server to ResourceSocketServer and introduced SocketServer interface
  • Renamed Connector to SocketConnector
  • Renamed DnsConnector to DnsSocketConnector
  • Renamed StaticConnector to StaticSocketConnector
  • Removed chunk size from BindContext, use parameters on listen / bindDatagram instead

1.2.0

09 Jul 18:25
v1.2.0
a8af9f5
Compare
Choose a tag to compare
  • Add support for TLS 1.3 (#82)