Corrected keepalive timers for both incoming and outgoing connections.