Skip to content
New issue

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

ssl secure connection #1027

Open
phrazer opened this issue Mar 15, 2024 · 1 comment
Open

ssl secure connection #1027

phrazer opened this issue Mar 15, 2024 · 1 comment

Comments

@phrazer
Copy link

phrazer commented Mar 15, 2024

stream_socket_enable_crypto($this->mainSocket, false);

may i ask, why do you disable encryption on the stream, if transport is ssl? or am I missing something? I see you enable it in tcp again, is it because of udp not supporting ssl?

https://www.php.net/manual/en/function.stream-socket-enable-crypto.php

@walkor
Copy link
Owner

walkor commented Mar 15, 2024

The default SSL handshake process in PHP is blocking, so we have disabled it and will attempt to enable SSL handshake with stream_socket_enable_crypto only when there is data available on TCP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants