SIGN IN SIGN UP

Detect dead connections via keepalive timeout

_recvAckCheck only fires when there are unacknowledged regular messages.
If a connection dies silently while idle, the timeout is never detected.

Add _keepAliveTimeoutCheck: since both sides send keepalives every 5s,
receiving no data for 20s means the connection is dead. Called from
_sendKeepAlive after each keepalive is sent.
E
Ehab Younes committed
c8cdcb16dc32ff78ad511db1b995d6bcd84b403b
Parent: 32776b5