windows下,證書是正確的,用nginx代理可以正常使用;workerman版本是3.3.8;php是5.6.8,開啟了openssl。
客戶端連接時,報
exception 'Exception' with message 'ssl handshake fail, stream_socket_enable_crypto return 0' in WorkerMan\workerman\Connection\TcpConnection.php:394
請問,這個要怎么解決?
有沒有改動過workerman源碼?
看到php手冊說只有非阻塞的socket stream_socket_enable_crypto才會返回0,
但是開啟ssl的時候socket是阻塞的,按照手冊不可能返回0.
還有就是客戶端到服務(wù)端的網(wǎng)絡(luò)延遲如何?看下php日志這一行有沒有其它的waring?
@1:還是不行,我用workerman試了一下,還是報exception 'Exception' with message 'ssl handshake fail, stream_socket_enable_crypto return 0' ,能給我一個demo試試嗎?
@1:上面的錯誤是workerman的TcpConnection.php沒替換的結(jié)果,替換了的,報這個錯誤
exception 'Exception' with message 'SSL handshake fail ' in D:\Program Files\Apa
che2.2.25\htdocs\workerman\workerman-for-win-master\workerman\Connection\TcpConn
ection.php:398