This ensures we use the same disconnect logic in the reconnect backend,
which calls reconnect_need_retry(), and in the dual_srv frontend which
calls reset_cm_connection_on_error.
Both reset_cm_connection_on_error() and reconnect_need_retry() are very
similar, both return a bool indicating whether a retry should be
attempted, unfortunately the functions have a different default return,
so I don't dare unifying them, but instead just call one from the other.
Bug: https://bugzilla.samba.org/show_bug.cgi?id=13332
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
return false;
}
- if (NT_STATUS_EQUAL(status, NT_STATUS_IO_DEVICE_ERROR)) {
- /*
- * RPC call sent on expired session, needs
- * reauthentication.
- */
- invalidate_cm_connection(domain);
- }
+ reset_cm_connection_on_error(domain, status);
return true;
}