阅读背景:

为什么在没有尝试I/O的情况下,无法检测到TCP套接字被对等的关闭了?

来源:互联网 

As a follow up to a recent question, I wonder why it is impossible in Java, without attempting reading/writing on a TCP socket, to detect that the socket has been gracefully closed by the peer? This seems to be the case regardless of whether one uses the pre-NIO , I wonder w




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: