adding connection timeout for the heartbeat