Tune SO_RCVBUF logic

- Calculate desired SO_RCVBUF by packet size for the video socket
- Use the OS default SO_RCVBUF for audio and STUN sockets
This commit is contained in:
Cameron Gutman committed 2023-07-25 18:30:19 -05:00
1 parent 70a2e305bc
commit 77c5d5c282
4 files changed
+45 -35

No files matched your search

+1 -1
View File
@@ -73,7 +73,7 @@ int LiFindExternalAddressIP4(const char* stunServer, unsigned short stunPort, un
goto Exit;
}
sock = bindUdpSocket(hints.ai_family, 2048);
sock = bindUdpSocket(hints.ai_family, 0);
if (sock == INVALID_SOCKET) {
err = LastSocketFail();
Limelog("Failed to connect to STUN server: %d\n", err);