Java Socket编程readLine返回null,read返回-1的条件

客户端正常关闭socket的时候,服务器端的readLine()方法会返回null,或者read()方法会返回-1

原文地址:https://www.cnblogs.com/wuyou/p/3720676.html