From e302f087394a5ee2e9d5ae7fee5da4f481fe78b4 Mon Sep 17 00:00:00 2001
From: 何书鹏 <heshupeng@bronet.cn>
Date: Fri, 13 May 2022 20:49:45 +0800
Subject: [PATCH] 5

---
 application/socketio/controller/Server.php |  9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/application/socketio/controller/Server.php b/application/socketio/controller/Server.php
index e643c66..ed9e003 100644
--- a/application/socketio/controller/Server.php
+++ b/application/socketio/controller/Server.php
@@ -69,14 +69,7 @@ class Server
         // 当$sender_io启动后监听一个http端口,通过这个端口可以给任意uid或者所有uid推送数据
         $sender_io->on('workerStart', function() use ($sender_io) {
             // 监听一个http端口
-            $context = array(
-                'ssl' => array(
-                    'local_cert'  => '/usr/local/nginx/cert/chengyigou.cn/chengyigou.cn.crt',
-                    'local_pk'    => '/usr/local/nginx/cert/chengyigou.cn/chengyigou.cn.key',
-                    'verify_peer' => false,
-                )
-            );
-            $inner_http_worker = new Worker('https://0.0.0.0:2121',$context);
+            $inner_http_worker = new Worker('https://0.0.0.0:2121');
             // 当http客户端发来数据时触发
             $inner_http_worker->onMessage = function(TcpConnection $http_connection, Request $request) use ($sender_io) {
                 // global $uidConnectionMap;
--
libgit2 0.24.0