An application I cannot change is dropping some incoming UDP packets. I suspect that the receive buffer is overflowing. Is there a registry setting to make the default buffer larger than 8KB?
3
-
Take a look at this question and also this one– ja_mesaSep 24, 2013 at 17:24
-
@ja_mesa My udp packets are TS over IP and always 7*188 = 1316 bytes. I'm not concerned about fragmentation.– Bruno MartinezSep 24, 2013 at 23:00
-
Making the receive buffer larger only moves the problem a bit. Either slow down the sender or speed up the receiver. And you can't eliminate packet loss in UDP.– user207421Sep 24, 2013 at 23:54
Add a comment
|
1 Answer
From this
To set the default size of the Windows use the following DWORD
registry keys :
[HKEY_LOCAL_MACHINE \SYSTEM \CurrentControlSet\Services\Afd\Parameters]
DefaultReceiveWindow = 10240
DefaultSendWindow = 10240
-
Do I need to create DefaultReceiveWindow & DefaultSendWindow under [HKEY_LOCAL_MACHINE \SYSTEM \CurrentControlSet\Services\Afd\Parameters]? As these are not available in my registry.– TariqJun 27, 2015 at 17:32
-
-
Thanks. I added the values and rebooted my system. Set both values to 16384. I reached to this thread while looking for a solution to missing RTP packets during decoding RTSP stream using FFMPEG. I still see RTP packet drop from RTSP stream in the decoding process.– TariqJun 28, 2015 at 8:10
-
3@Tariq Please try
getsockopt
with parameterSO_SNDBUF
, you can get the socket buffer size. BTW, you can set the size of socket buffer throughsetsockopt
with parameterSO_SNDBUF
.– zangwJun 29, 2015 at 1:17 -
2