diff options
| author | Andrew Meadows <leviathan@lindenlab.com> | 2025-02-18 11:38:52 -0800 | 
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-18 11:38:52 -0800 | 
| commit | 6d0b0a77eed584c6bcf77f6cd5fdbdbf89a987d7 (patch) | |
| tree | ac6b0a436e9950086db495fcf07a87986641083b /indra/llmessage/net.cpp | |
| parent | 74d2ed918dd185cbc47ed64f78be76ae6b94a60f (diff) | |
drain UDP socket to avoid dropped packets (#3565)
drain UDP socket in idleNetwork() to avoid dropped packets
Diffstat (limited to 'indra/llmessage/net.cpp')
| -rw-r--r-- | indra/llmessage/net.cpp | 10 | 
1 files changed, 2 insertions, 8 deletions
diff --git a/indra/llmessage/net.cpp b/indra/llmessage/net.cpp index f153c938cf..2be5a9e5b6 100644 --- a/indra/llmessage/net.cpp +++ b/indra/llmessage/net.cpp @@ -76,14 +76,8 @@ static U32 gsnReceivingIFAddr = INVALID_HOST_IP_ADDRESS; // Address to which dat  const char* LOOPBACK_ADDRESS_STRING = "127.0.0.1";  const char* BROADCAST_ADDRESS_STRING = "255.255.255.255"; -#if LL_DARWIN -    // macOS returns an error when trying to set these to 400000.  Smaller values succeed. -    const int   SEND_BUFFER_SIZE    = 200000; -    const int   RECEIVE_BUFFER_SIZE = 200000; -#else // LL_DARWIN -    const int   SEND_BUFFER_SIZE    = 400000; -    const int   RECEIVE_BUFFER_SIZE = 400000; -#endif // LL_DARWIN +const int   SEND_BUFFER_SIZE    = 200000; +const int   RECEIVE_BUFFER_SIZE = 800000;  // universal functions (cross-platform)  | 
