Skip to content

Commit

Permalink
Merge pull request #60 from evgeny-leksikov/ucp_cm_uninit_device
Browse files Browse the repository at this point in the history
UCP/WIREUP/CM: handle connection request from uninitialized device
  • Loading branch information
yosefe authored Oct 15, 2020
2 parents cb4c31c + 7e60324 commit 2d92236
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/ucp/wireup/wireup_cm.c
Original file line number Diff line number Diff line change
Expand Up @@ -729,6 +729,16 @@ ucp_ep_cm_server_create_connected(ucp_worker_h worker, unsigned ep_init_flags,
const ucp_address_entry_t *address;
ucp_ep_h ep;
ucs_status_t status;
char client_addr_str[UCS_SOCKADDR_STRING_LEN];

if (tl_bitmap == 0) {
ucs_error("listener %p: got connection request from %s on uninitialized device %s",
conn_request->listener,
ucs_sockaddr_str((struct sockaddr*)&conn_request->client_address,
client_addr_str, sizeof(client_addr_str)),
conn_request->dev_name);
return UCS_ERR_UNREACHABLE;
}

ucp_unpacked_address_for_each(address, remote_addr) {
num_remote_ep_addrs += address->num_ep_addrs;
Expand Down

0 comments on commit 2d92236

Please sign in to comment.