Enable keepalive for TCP connections