reconnect logic, resend_on_failure, tcp seems working