This patch should be backported from master: torture: Address flapping samba4.rpc.altercontext test NT_STATUS_CONNECTION_DISCONNECTED and NT_STATUS_CONNECTION_RESET are equivilent for the purposes of this test, both come from the server shutting down the connection, the difference comes from two different unix error numbers that can come from this.