Skip to content

Commit

Permalink
IODEMO: non blocking connection establishment, CR(10)
Browse files Browse the repository at this point in the history
  • Loading branch information
evgeny-leksikov committed Mar 22, 2021
1 parent 17f8007 commit d2bbaf1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions test/apps/iodemo/ucx_wrapper.cc
Original file line number Diff line number Diff line change
Expand Up @@ -831,6 +831,7 @@ void UcxConnection::connect_tag(UcxCallback *callback)
} else {
established(UCS_PTR_STATUS(rreq));
if (rreq != NULL) {
// failed to receive
return;
}
}
Expand Down Expand Up @@ -934,11 +935,11 @@ void UcxConnection::handle_connection_error(ucs_status_t status)
_ucx_status = status;

/* the upper layer should close the connection */
if (_establish_cb != NULL) {
if (is_established()) {
_context.handle_connection_error(this);
} else {
(*_establish_cb)(status);
_establish_cb = NULL;
} else {
_context.handle_connection_error(this);
}
}

Expand Down

0 comments on commit d2bbaf1

Please sign in to comment.