+proper buffer size for udp socket

SkypeLog: 28.02.2015
[17:18:32] Dušan Jocic: when creating user datagram protocol or UDP, old
implementation was limiting lan utalization to 1% of our modern 1000Mbps
hardwar
[17:19:15] Dušan Jocic: that add proper buffer size for udp socket
[17:19:43] Dušan Jocic: and lift off limitation what was present there
for 10/100 mbps lan
This commit is contained in:
Miodrag Sejic 2015-02-28 21:28:10 +01:00
parent 1c580f5a5f
commit cd686a23b3

View file

@ -503,7 +503,7 @@ bool Net::openPort(S32 port, bool doBind)
}
if(error == NoError)
error = setBufferSize(udpSocket, 32768);
error = setBufferSize(udpSocket, 32768*8);
if(error == NoError && !useVDP)
error = setBroadcast(udpSocket, true);