krakjoe / pthreads

Threading for PHP - Share Nothing, Do Everything :)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SSL/TLS with Thread-Safe Socket Implementation

BoltUser opened this issue · comments

Hi,
can i use the pthreads Socket implementation with SSL/TLS ?

May be a stupid question: Why not check it out with a MCVE and then you know? At least so I test different scenarios and then I get a code base for further development?

Because i don't know how i can implement it, it's easy to implement with stream_socket_client but with pthreads socket i don't know if is possible, you know if is possible and can you help me about this?

Check out https://github.com/krakjoe/pthreads/tree/openssl_streams and see https://github.com/krakjoe/pthreads/blob/openssl_streams/examples/stub.php for further api details. But be careful, the branch is highly experimental! Any feedback or bug report is welcome!

pthreads_openssl_streams