更新时间:2023-01-18 09:06:44
我过去也遇到过这些错误.我认为,这些错误是由非同步资源引起的.但是我在 javadoc 中找不到指出我错误的内容.
I got these errors in the past too. I think, that these errors caused by a non synchronized resource. But I couldnt find something in the javadoc that points me to an mistake.
所以我决定使用 jersey/grizzly 进行连接处理、数据编码等.如果您对此感兴趣,请阅读我的评论:多客户端/服务器.处理沟通
So I decided to use jersey/grizzly for connection handling, data encoding etc. If you're interessted in, read my comment there: MultiClient / Server. Handle communications
但是,如果有人能告诉我们如何在繁重的并发环境中使用普通的旧套接字,我将不胜感激.
But, I would appreciated, if someone can tell us how to use plain old sockets in a heavy concurrent environment.