add tcp long-lived and short-lived connection option