Skip to content

Commit

Permalink
prov/tcp: check errno
Browse files Browse the repository at this point in the history
check errno for retriable failure.

Signed-off-by: Di Wang <ddiwang@google.com>
  • Loading branch information
wangdi1 committed Feb 10, 2025
1 parent 7fbe8a3 commit e28f3c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -1421,7 +1421,7 @@ int ofi_bsock_async_done(const struct fi_provider *prov,
msg.msg_controllen = sizeof(ctrl);
ret = recvmsg(bsock->sock, &msg, MSG_ERRQUEUE);
if (ret < 0) {
if (OFI_SOCK_TRY_SND_RCV_AGAIN(ret))
if (OFI_SOCK_TRY_SND_RCV_AGAIN(errno))
return 0;

FI_WARN(prov, FI_LOG_EP_DATA,
Expand Down

0 comments on commit e28f3c6

Please sign in to comment.