pixelfederation / swoole-bundle

Symfony Swoole Bundle
MIT License
31 stars 12 forks source link

HTTP2 configuration #294

Open Lemonify opened 1 year ago

Lemonify commented 1 year ago

Is your feature request related to a problem? Please describe. Swoole should be capable of running in HTTP2 mode (if compiled correctly), however, there seems to be no option to actually enable it.

Describe the solution you'd like Add options to enable HTTP2 on the Swoole server.

jingjingxyk commented 1 year ago

php enable swoole extenson on swoole v5.0


./configure --enable-cli \
--enable-swoole \
--enable-sockets \
--enable-mysqlnd \
--enable-swoole-curl \
--enable-cares \
--with-brotli-dir=${brotli_install_prefix} \
 --with-nghttp2-dir=${nghttp2_install_prefix}
jingjingxyk commented 1 year ago

swoole binary release: swoole-cli

use swoole-cli more info : https://github.com/swoole/swoole-src/releases

swoole-cli feature

download swoole-cli

https://github.com/swoole/swoole-src/releases/download/v5.0.3/swoole-cli-v5.0.3-linux-x64.tar.xz https://github.com/swoole/swoole-src/releases/download/v5.0.3/swoole-cli-v5.0.3-macos-x64.tar.xz

or

https://github.com/swoole/swoole-cli.git


curl -fsSL https://github.com/swoole/swoole-cli/blob/main/setup-php-runtime.sh?raw=true | sh