crossoverJie / crossoverJie/cim
提交之前请查看是否有相关 issue,谢谢。
Open
- Dominant language
- Java
- Stars
- 9.5k
- Forks
- 2.9k
- PR merge metrics
- No merged PRs in 30d
Description
多人群聊时消息先后顺序乱了,程序中用户与channel都是一对一的关系,群聊的时候使用的for循环发送,替代了原来的ChannelGroup 发送,使用for循环发消息时线程不安全导致了多人发送时消息穿插。是否有更好的办法呢?
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing the group-message send path described in the issue, comparing the current for-loop behavior with the former ChannelGroup approach. Reproduce concurrent sends and inspect how thread safety affects message ordering; done means multi-user messages no longer interleave, with the chosen approach verified by relevant tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100