Skip to content

Releases: amphp/socket

1.1.3

25 Jun 19:03
v1.1.3
Compare
Choose a tag to compare
  • Removed error_get_last() calls in favor of custom error handlers to make the code independent of custom user error handlers.

1.1.2

23 Jun 20:12
v1.1.2
Compare
Choose a tag to compare
  • Fixed undefined array offset error (#76)
  • Fixed potential null type error

1.1.1

27 Feb 21:37
v1.1.1
Compare
Choose a tag to compare
  • Fixed ALPN whitespace resulting in TLS handshake errors with some rare servers (amphp/http-client#255)
  • Keep TlsInfo around in ResourceSocket (#71)

1.1.0

31 Dec 17:29
v1.1.0
Compare
Choose a tag to compare
  • Added Server::isClosed()
  • Added DatagramSocket::isClosed()
  • Added custom resolver support for DnsConnector (#70)

0.10.13

06 Nov 23:47
d84f6e0
Compare
Choose a tag to compare
  • Fixed an error where a socket pool would sometimes report that a socket did not belong to the pool if the socket was closed before being returned to the pool.

1.0.0

01 Aug 19:55
v1.0.0
Compare
Choose a tag to compare
  • Changed minimum PHP version to 7.1
  • Added support for UDP / datagrams
  • Added Connector interface
  • Added EncryptableSocket interface
  • Added SocketAddress in favor of raw strings
  • Added TlsInfo exposing a connection's TLS details
  • Added hasTlsAlpnSupport() / hasTlsSecurityLevelSupport()
  • Changed SocketPool::checkout() to accept an ConnectContext parameter
  • Renamed BasicSocketPool to UnlimitedSocketPool
  • Renamed pair() to createPair()
  • Renamed enableCrypto() to setupTls()
  • Renamed ClientConnectContext to ConnectContext
  • Renamed ServerListenContext to BindContext
  • Renamed CryptoException to TlsException
  • Removed cryptoConnect, use connect() and call $socket->setupTls() on the returned socket instead
  • Removed StaticSocketPool, use StaticConnector instead with any other SocketPool implementation

0.10.12

04 Jun 14:51
Compare
Choose a tag to compare
  • Fixed URI parsing when the host is 0 (#60)

0.10.11

17 Oct 17:04
2cb9d0e
Compare
Choose a tag to compare
  • connect() now immediately honors cancellation requests from cancellation tokens. Prior behavior waited for the connect timeout to elapse before checking for a cancellation request.

0.10.10

03 Oct 09:38
v0.10.10
Compare
Choose a tag to compare
  • Improved error message if ServerSocket::enableCrypto() is called without a TLS configuration being present.

0.10.9

02 May 03:24
v0.10.9
6e9686b
Compare
Choose a tag to compare
  • Added options to ClientConnectContext and ServerListenContext to enable or disable TCP_NODELAY.