Skip to content

Commit

Permalink
Merge pull request #1 from aingerson/stephen
Browse files Browse the repository at this point in the history
prov/rxm: fix address comparison to remove duplicate connections
  • Loading branch information
ooststep authored Jul 29, 2021
2 parents 5abfe09 + 736b43f commit 64174a7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions prov/rxm/src/rxm_conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,7 @@ rxm_process_connreq(struct rxm_ep *ep, struct rxm_eq_cm_entry *cm_entry)
break;
case RXM_CM_CONNECTING:
/* simultaneous connections */
cmp = ofi_addr_cmp(&rxm_prov, &peer_addr.sa, &peer->addr.sa);
cmp = ofi_addr_cmp(&rxm_prov, &peer_addr.sa, &ep->addr.sa);
if (cmp < 0) {
/* let our request finish */
rxm_reject_connreq(ep, cm_entry,
Expand All @@ -558,9 +558,7 @@ rxm_process_connreq(struct rxm_ep *ep, struct rxm_eq_cm_entry *cm_entry)
break;
case RXM_CM_ACCEPTING:
case RXM_CM_CONNECTED:
/* peer reset and lost previous connection state */
rxm_close_conn(conn);
break;
goto put;
default:
assert(0);
break;
Expand Down

0 comments on commit 64174a7

Please sign in to comment.