Network problems (continuted) Don't trust on being notified when the connection breaks - TCP cannot determine if a link somewhere in the middle just went down or is loosing all packets. Solution: add your own application-level keepalive and timeouts.