【03】的博客webSocket多线程推送出错,报错信息为The remote endpoint was in state [TEXT_PARTIAL_WRITING] 错误原因 两个方法有可能同时执行,当方法1或者方法2遍历到某一个session并且调用sendMessage发送消息的时候,另外一个...
ithewei的博客本篇介绍服务端编程的多线程/多进程模式以及使用libhv如何实现。 文章目录`one thread per connection`:每个连接一个线程`one loop per thread`:每个线程一个事件循环`multi-acceptor-processes`:多accept进程...