18 Apr
2014
18 Apr
'14
9:44 a.m.
hi all: I try it. The async_read in client can't detect the connection of tcp close immediately when I kill the process of server, but It can find it after almost 3 minutes.
The only reliable and portable way to detect peer socket disconnection is to implement application-layer ping/heartbeat.