-
Notifications
You must be signed in to change notification settings - Fork 196
Open
Description
有两个地方有问题
- 连接模块如websocket的 wsModule 在向连接通道写数据的接口 SendMsg,这个接口可被外部service 直接调用,如果service 下的 WsModule 有10000个连接,这里service 协程会串行给所有连接写数据,有阻塞风险。 应该给每一个 socket 开一个协程写 socket数据,而外部service 通过channel 向 socket 写协程投递 写数据消息。
- IRpcHandler 模块 RClient 最后调用的 rc.selfClient.rawGo 时,写数据是在当前 gouroutine 直接调用的,如果多个 service 都向同一个目标node发起rpc,这里会有并发风险
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels