From 97be7b6271267ab47274d230e8bfbf6ef540c63c Mon Sep 17 00:00:00 2001 From: dmitrygx Date: Tue, 21 Dec 2021 22:21:49 +0200 Subject: [PATCH] UCP/TAG/RNDV: Complete send operation only if RTS wasn't sent --- src/ucp/tag/rndv.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ucp/tag/rndv.c b/src/ucp/tag/rndv.c index 7f1afb3b3de..9c36eec23ef 100644 --- a/src/ucp/tag/rndv.c +++ b/src/ucp/tag/rndv.c @@ -421,6 +421,8 @@ void ucp_tag_rndv_cancel(ucp_request_t *sreq) { if (!(sreq->send.ep->flags & UCP_EP_FLAG_REMOTE_CONNECTED)) { if (sreq->flags & UCP_REQUEST_FLAG_RNDV_RTS_SENT) { + ucp_rndv_req_add_to_cancelled_list(sreq, UCS_ERR_CANCELED); + } else { ucp_rndv_complete_send(sreq, UCS_ERR_CANCELED, "rndv_cancel"); } } else {