Closed tgl123 closed 6 years ago
php --ri swoole
php -v
Details
我就开启了一个客户端去连接,swoole.log中显示很多如下错误信息: 怎么出来那个么多fd
[2018-08-28 19:44:01 9.0] NOTICE swFactoryProcess_finish (ERROR 1004): send 361 byte failed, because connection[fd=32] is closed. [2018-08-28 19:44:10 9.0] NOTICE swFactoryProcess_finish (ERROR 1004): send 371 byte failed, because connection[fd=33] is closed. [2018-08-28 19:44:20 9.0] NOTICE swFactoryProcess_finish (ERROR 1004): send 402 byte failed, because connection[fd=34] is closed. [2018-08-28 19:44:30 9.0] NOTICE swFactoryProcess_finish (ERROR 1004): send 370 byte failed, because connection[fd=35] is closed. [2018-08-28 19:44:40 9.0] NOTICE swFactoryProcess_finish (ERROR 1004): send 325 byte failed, because connection[fd=36] is closed. [2018-08-28 19:44:50 9.0] NOTICE swFactoryProcess_finish (ERROR 1004): send 402 byte failed, because connection[fd=37] is closed. [2018-08-28 19:45:01 9.0] NOTICE swFactoryProcess_finish (ERROR 1004): send 407 byte failed, because connection[fd=38] is closed. [2018-08-28 19:45:10 9.0] NOTICE swFactoryProcess_finish (ERROR 1004): send 402 byte failed, because connection[fd=39] is closed. [2018-08-28 19:45:20 9.0] NOTICE swFactoryProcess_finish (ERROR 1004): send 402 byte failed, because connection[fd=40] is closed. [2018-08-28 19:45:30 9.0] NOTICE swFactoryProcess_finish (ERROR 1004): send 343 byte failed, because connection[fd=41] is closed. [2018-08-28 19:45:40 9.0] NOTICE swFactoryProcess_finish (ERROR 1004): send 385 byte failed, because connection[fd=42] is closed. [2018-08-28 19:45:50 9.0] NOTICE swFactoryProcess_finish (ERROR 1004): send 356 byte failed, because connection[fd=43] is closed. [2018-08-28 19:46:01 9.0] NOTICE swFactoryProcess_finish (ERROR 1004): send 332 byte failed, because connection[fd=44] is closed. [2018-08-28 19:46:10 9.0] NOTICE swFactoryProcess_finish (ERROR 1004): send 323 byte failed, because connection[fd=45] is closed.
哦,我知道原因了,因为开启一个定时任务(就是由定时任务引起的),有信息就会推给websocket,然后再由其群发
Describe what you are trying to achieve and what goes wrong.
// paste output here
Provide minimal script to reproduce the issue
// paste code
请将实际操作一并放出来
谢谢提醒,哦,我知道原因了,因为开启一个定时任务(就是由定时任务引起的),有信息就会推给websocket,然后再由其群发
php --ri swoole
)php -v
)Details
我就开启了一个客户端去连接,swoole.log中显示很多如下错误信息: 怎么出来那个么多fd
[2018-08-28 19:44:01 9.0] NOTICE swFactoryProcess_finish (ERROR 1004): send 361 byte failed, because connection[fd=32] is closed. [2018-08-28 19:44:10 9.0] NOTICE swFactoryProcess_finish (ERROR 1004): send 371 byte failed, because connection[fd=33] is closed. [2018-08-28 19:44:20 9.0] NOTICE swFactoryProcess_finish (ERROR 1004): send 402 byte failed, because connection[fd=34] is closed. [2018-08-28 19:44:30 9.0] NOTICE swFactoryProcess_finish (ERROR 1004): send 370 byte failed, because connection[fd=35] is closed. [2018-08-28 19:44:40 9.0] NOTICE swFactoryProcess_finish (ERROR 1004): send 325 byte failed, because connection[fd=36] is closed. [2018-08-28 19:44:50 9.0] NOTICE swFactoryProcess_finish (ERROR 1004): send 402 byte failed, because connection[fd=37] is closed. [2018-08-28 19:45:01 9.0] NOTICE swFactoryProcess_finish (ERROR 1004): send 407 byte failed, because connection[fd=38] is closed. [2018-08-28 19:45:10 9.0] NOTICE swFactoryProcess_finish (ERROR 1004): send 402 byte failed, because connection[fd=39] is closed. [2018-08-28 19:45:20 9.0] NOTICE swFactoryProcess_finish (ERROR 1004): send 402 byte failed, because connection[fd=40] is closed. [2018-08-28 19:45:30 9.0] NOTICE swFactoryProcess_finish (ERROR 1004): send 343 byte failed, because connection[fd=41] is closed. [2018-08-28 19:45:40 9.0] NOTICE swFactoryProcess_finish (ERROR 1004): send 385 byte failed, because connection[fd=42] is closed. [2018-08-28 19:45:50 9.0] NOTICE swFactoryProcess_finish (ERROR 1004): send 356 byte failed, because connection[fd=43] is closed. [2018-08-28 19:46:01 9.0] NOTICE swFactoryProcess_finish (ERROR 1004): send 332 byte failed, because connection[fd=44] is closed. [2018-08-28 19:46:10 9.0] NOTICE swFactoryProcess_finish (ERROR 1004): send 323 byte failed, because connection[fd=45] is closed.
哦,我知道原因了,因为开启一个定时任务(就是由定时任务引起的),有信息就会推给websocket,然后再由其群发