Skip to content

Commit

Permalink
Add more detail to setsockopt logs (#1148)
Browse files Browse the repository at this point in the history
  • Loading branch information
kev-the-dev authored Jun 7, 2021
1 parent efdf06b commit 08e4d29
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/source/Ice/Network.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,11 @@ STATUS createSocket(KVS_IP_FAMILY_TYPE familyType, KVS_SOCKET_PROTOCOL protocol,

optionValue = 1;
if (setsockopt(sockfd, SOL_SOCKET, NO_SIGNAL, &optionValue, SIZEOF(optionValue)) < 0) {
DLOGD("setsockopt() failed with errno %s", getErrorString(getErrorCode()));
DLOGD("setsockopt() NO_SIGNAL failed with errno %s", getErrorString(getErrorCode()));
}

if (sendBufSize > 0 && setsockopt(sockfd, SOL_SOCKET, SO_SNDBUF, &sendBufSize, SIZEOF(sendBufSize)) < 0) {
DLOGW("setsockopt() failed with errno %s", getErrorString(getErrorCode()));
DLOGW("setsockopt() SO_SNDBUF failed with errno %s", getErrorString(getErrorCode()));
CHK(FALSE, STATUS_SOCKET_SET_SEND_BUFFER_SIZE_FAILED);
}

Expand Down

0 comments on commit 08e4d29

Please sign in to comment.