Skip to content

Commit

Permalink
Remove hard failure from rev buffer size setting
Browse files Browse the repository at this point in the history
  • Loading branch information
zoey jodon committed Feb 2, 2024
1 parent a5311e7 commit a272260
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/PlatformSockets.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,11 +366,8 @@ SOCKET bindUdpSocket(int addressFamily, struct sockaddr_storage* localAddr, SOCK
}
else if (bufferSize <= RCV_BUFFER_SIZE_MIN) {
// Failed to set a buffer size within the allowable range
err = LastSocketError();
Limelog("Set rcv buffer size failed: %d\n", err);
closeSocket(s);
SetLastSocketError(err);
return INVALID_SOCKET;
Limelog("Set rcv buffer size failed: %d\n", LastSocketError());
break;
}
else if (bufferSize - RCV_BUFFER_SIZE_STEP <= RCV_BUFFER_SIZE_MIN) {
// Last shot - we're trying the minimum
Expand Down

0 comments on commit a272260

Please sign in to comment.