niezhiliang / netty-websocket-spring-boot

♨️基于Netty实现的websocket消息推送,单独发送信息,群发信息
418 stars 221 forks source link

线程安全问题 #1

Closed song01 closed 1 year ago

song01 commented 6 years ago

private static Map<String,Session> sessionPool = new HashMap<String,Session>(); private static Map<String,String> sessionIds = new HashMap<String,String>(); 这两个共享的map不应该是线程安全的吗

niezhiliang commented 5 years ago

感谢提出问题,现在解决啦