Connection timed out
服务模式:长连结.
服务端情况 | 客户端正常 | 客户端关闭程序 | kill 进程 | 客户端主机断网,死机 | .不可达 |
链接空闲,已经设置keeplive | tcp协议会自动发起ack,和接受ack, 应用层无任何提示.不会触发recv | recv:-1 errorConnection reset by peer | recv:-1 errorConnection reset by peer | recv:-1 .error:Connection timed out | |
链接空闲,不设置keeplive | 无反映 | Connection reset by peer | Connection reset by peer | 无反映 | |