mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-11-30 09:44:28 +00:00
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:
1 parent
70a2e305bc
commit
77c5d5c282
4 files changed
+45
-35
No files matched your search
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user