Workerman-master.zip

上传者: PingFanDeShiJie_TOM | 上传时间: 2023-03-08 22:11:43 | 文件大小: 66KB | 文件类型: ZIP
master进程为主进程,启动过程中读取conf配置,根据每个应用配置中的ip和端口创建监听socket,然后再根据配置中的进程数创建对应数量的子进程即worker进程,worker进程会自动继承master进程创建的监听socket,使得worker进程能够独立的接受并处理客户端的连接。而后master进程进入监听信号的逻辑中,监听worker进程退出信号(worker进程退出后,系统会自动向master进程发送一个SIGHCLD信号,mater进程会重新创建子进程,将缺失的子进程补上),master进程还会监听workermand脚本发来的停止信号(SIGINT)和平滑重启服务信号(SIG

文件下载

资源详情

[{"title":"( 31 个子文件 66KB ) Workerman-master.zip","children":[{"title":"Workerman-master","children":[{"title":"WebServer.php <span style='color:#111;'> 10.35KB </span>","children":null,"spread":false},{"title":".gitignore <span style='color:#111;'> 51B </span>","children":null,"spread":false},{"title":"Autoloader.php <span style='color:#111;'> 1.80KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 14.69KB </span>","children":null,"spread":false},{"title":"Connection","children":[{"title":"AsyncUdpConnection.php <span style='color:#111;'> 5.00KB </span>","children":null,"spread":false},{"title":"UdpConnection.php <span style='color:#111;'> 3.96KB </span>","children":null,"spread":false},{"title":"ConnectionInterface.php <span style='color:#111;'> 2.32KB </span>","children":null,"spread":false},{"title":"AsyncTcpConnection.php <span style='color:#111;'> 10.64KB </span>","children":null,"spread":false},{"title":"TcpConnection.php <span style='color:#111;'> 24.75KB </span>","children":null,"spread":false}],"spread":true},{"title":"Events","children":[{"title":"Select.php <span style='color:#111;'> 9.53KB </span>","children":null,"spread":false},{"title":"React","children":[{"title":"ExtLibEventLoop.php <span style='color:#111;'> 731B </span>","children":null,"spread":false},{"title":"Base.php <span style='color:#111;'> 6.37KB </span>","children":null,"spread":false},{"title":"StreamSelectLoop.php <span style='color:#111;'> 697B </span>","children":null,"spread":false},{"title":"ExtEventLoop.php <span style='color:#111;'> 686B </span>","children":null,"spread":false}],"spread":true},{"title":"EventInterface.php <span style='color:#111;'> 1.80KB </span>","children":null,"spread":false},{"title":"Event.php <span style='color:#111;'> 5.17KB </span>","children":null,"spread":false},{"title":"Libevent.php <span style='color:#111;'> 5.97KB </span>","children":null,"spread":false},{"title":"Swoole.php <span style='color:#111;'> 6.76KB </span>","children":null,"spread":false},{"title":"Ev.php <span style='color:#111;'> 4.96KB </span>","children":null,"spread":false}],"spread":true},{"title":"composer.json <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false},{"title":"Lib","children":[{"title":"Constants.php <span style='color:#111;'> 939B </span>","children":null,"spread":false},{"title":"Timer.php <span style='color:#111;'> 4.35KB </span>","children":null,"spread":false}],"spread":true},{"title":"Protocols","children":[{"title":"Http","children":[{"title":"mime.types <span style='color:#111;'> 3.38KB </span>","children":null,"spread":false}],"spread":true},{"title":"Http.php <span style='color:#111;'> 21.39KB </span>","children":null,"spread":false},{"title":"Ws.php <span style='color:#111;'> 16.91KB </span>","children":null,"spread":false},{"title":"Frame.php <span style='color:#111;'> 1.35KB </span>","children":null,"spread":false},{"title":"Websocket.php <span style='color:#111;'> 19.30KB </span>","children":null,"spread":false},{"title":"Text.php <span style='color:#111;'> 1.64KB </span>","children":null,"spread":false},{"title":"ProtocolInterface.php <span style='color:#111;'> 1.60KB </span>","children":null,"spread":false}],"spread":true},{"title":"MIT-LICENSE.txt <span style='color:#111;'> 1.14KB </span>","children":null,"spread":false},{"title":"Worker.php <span style='color:#111;'> 70.19KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明