We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the documentation: https://openswoole.com/docs/modules/swoole-server-construct
To enable SSL: $sock_type | OpenSwoole\Constant::SSL. Check configuration for SSL
So I have:
$server = new Server('*', 9000, \OpenSwoole\Server::POOL_MODE, \OpenSwoole\Constant::SOCK_TCP | \OpenSwoole\Constant::SSL);
However, I get this error:
Uncaught Error: Undefined constant OpenSwoole\Constant::SSL
OpenSwoole v22
I installed openswoole with pecl install openswoole
pecl install openswoole
The text was updated successfully, but these errors were encountered:
And if I try to hardcode the bitwise OR result (1 | 512 = 513), I get this:
Uncaught OpenSwoole\Exception: failed to listen server port[*:9000], Error: Socket type not supported[94]
Sorry, something went wrong.
Hi @ghnp5 ,
Those are supported constants. Maybe docs are outdated, I'm not sure.
OpenSwoole\Constant::SSLv3_METHOD OpenSwoole\Constant::SSLv3_SERVER_METHOD OpenSwoole\Constant::SSLv3_CLIENT_METHOD OpenSwoole\Constant::SSLv23_METHOD OpenSwoole\Constant::SSLv23_SERVER_METHOD OpenSwoole\Constant::SSLv23_CLIENT_METHOD
The default algorithm is OpenSwoole\Constant::SSLv23_METHOD.
https://openswoole.com/docs/modules/swoole-server/configuration
Hello,
Thank you for your reply.
Seems you're referring to this line:
'ssl_method' => OpenSwoole\Constant::SSLv3_CLIENT_METHOD, // removed from v4.5.4
which was removed in v4.5.4.
--
What I'm referring to is this: https://openswoole.com/docs/modules/swoole-server-construct
Where it says:
However, when I attempt to add that part, | OpenSwoole\Constant::SSL, I get the crashes described in my messages above.
| OpenSwoole\Constant::SSL
Thank you very much.
No branches or pull requests
In the documentation: https://openswoole.com/docs/modules/swoole-server-construct
So I have:
$server = new Server('*', 9000, \OpenSwoole\Server::POOL_MODE, \OpenSwoole\Constant::SOCK_TCP | \OpenSwoole\Constant::SSL);
However, I get this error:
OpenSwoole v22
I installed openswoole with
pecl install openswoole
The text was updated successfully, but these errors were encountered: