我现在一个servlet中有调用socket访问,作为socket的客户端,发现并发一上来,就报java.net.SocketException: Connection reset
现在想把传统的socket ,client改成 NIO模式,发现服务端不能正常接收,不知道为啥?难道服务端要支持NIO??
拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...
I have found the reason, it is mainly caused by a line of code in the client.
I have found the reason, it is mainly caused by a line of code in the client.