入门指引 Server Client Process AsyncIO Memory HttpServer WebSocket 高级 其他

发布于 2015-08-09 09:49:10 | 58 次阅读 | 评论: 0 | 来源: 网络整理

swoole在配置dispatch_mode=1或3后,因为系统无法保证onConnect/onReceive/onClose的顺序,默认关闭了onConnect/onClose事件。

如果应用程序需要onConnect/onClose事件,并且能接受顺序问题可能带来的安全风险,可以通过设置 enable_unsafe_event = true,启用onConnect/onClose事件

enable_unsafe_event配置在1.7.18以上版本可用

最新网友评论  共有(0)条评论 发布评论 返回顶部

Copyright © 2007-2017 PHPERZ.COM All Rights Reserved   冀ICP备14009818号  版权声明  广告服务