Swoole v4.6.1 version released, bug fix version

The v4.6.1  version is mainly a bug fix version without downward incompatible changes.

In the previous version, the native curl coroutine client was supported, but the pecl installation option was omitted, which caused some users to report that the native curl coroutine client could not be used normally, and it could only be solved by manual compilation.

So in this version, the missing options of pecl and the minimum version of PHP are fixed. Now you can install Swoole directly through pecl:

pecl install swoole

By turning on the  --enable-swoole-curl  option, you can enjoy the native curl coroutine client.

The CURLOPT_PROXY option of the original SWOOLE_HOOK_CURL method has been enhanced. Previously, only CURLOPT_PROXY was supported to set the proxy ip. Now you can directly use CURLOPT_PROXY to set the information of the method, IP address, port number, account password

curl_setopt($ch, CURLOPT_PROXY, 'socks5://username:[email protected]:1086');

curl_setopt($ch, CURLOPT_PROXY, 'http://127.0.0.1:1087');

At the same time, the openssl thread safety issue is fixed, and it is recommended to upgrade

The following is the complete update log:

Enhance

  • Add  --enable-thread-context compilation options (#3970) (@matyhtf)
  • Check if the connection exists when operating session_id (#3993) (@matyhtf)
  • Enhance CURLOPT_PROXY (swoole/library#87) (@sy-records)

repair

  • Fix minimum PHP version in pecl installation (#3979) (@remicollet)
  • Fix no --enable-swoole-json sum  --enable-swoole-curl option when installing pecl  (#3980) (@sy-records)
  • Fix openssl thread safety issue (b516d69f) (@matyhtf)
  • Fix enableSSL coredump (#3990) (@huanghantao)

Kernel

  • Optimize ipc writev to avoid coredump when event data is empty (9647678) (@matyhtf)

Guess you like

Origin www.oschina.net/news/126299/swoole-4-6-1-released