You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
Is there anyway that php-uv can support ssl in a non-blocking fashion?
In my framework, I used stream_socket_server, like the following:
stream_context_set_option($context, 'ssl', 'local_cert', $certificate);
stream_context_set_option($context, 'ssl', 'verify_peer', false);
$server = stream_socket_server("$protocol://$ip:$port", $errno,$errstr,STREAM_SERVER_BIND|STREAM_SERVER_LISTEN, $context);
The ssl part works but seems like it is blocking, I tried to make it non-blocking by doing:
stream_set_blocking($server, 0);
Things stop working.
Are there any ways that php-uv can help make serving ssl in an async fashion?
Thanks.
Best Regards,
Jim
The text was updated successfully, but these errors were encountered:
Hi,
Is there anyway that php-uv can support ssl in a non-blocking fashion?
In my framework, I used stream_socket_server, like the following:
stream_context_set_option($context, 'ssl', 'local_cert', $certificate);
stream_context_set_option($context, 'ssl', 'verify_peer', false);
$server = stream_socket_server("$protocol://$ip:$port", $errno,$errstr,STREAM_SERVER_BIND|STREAM_SERVER_LISTEN, $context);
The ssl part works but seems like it is blocking, I tried to make it non-blocking by doing:
stream_set_blocking($server, 0);
Things stop working.
Are there any ways that php-uv can help make serving ssl in an async fashion?
Thanks.
Best Regards,
Jim
The text was updated successfully, but these errors were encountered: