[Live-devel] increase socket receive buffer to handle udp packet loss ?

Kevin.Liu kevin.liu at innosofts.com
Mon Dec 14 19:30:33 PST 2009


Hi ,

  My live555 for wm6.1 lose udp packet about 20%-40%. And I found if I
receive the data with other procedure written by myself which is only
receive udp packet on certain port, the packet lost was only 10% . I have
enlarged the socket recv buffer to 4000000 . 

I found when the live555 receives the data from internet it will deposit the
data to the ReorderingPacketBuffer and then use the *source "
getNextCompletedPakcet " to get the packet from ReorderingPacketBuffer,
finally move the data to the buffer of the *sink.  The process will consume
some time. And if the udp packet come but the process has not finished ,the
packet will be deposited to the socket recv buffer until the socket recv
buffer full.  If the socket recv buffer full ,the udp packet will be
abandoned. This cause the packet loss. Is that right ?

  The size of socket receive buffer should has a max limit , I set it to
4000000 but it did not seems works good .  

 is there any suggestions for the live555 for window mobile which will
handle the packet loss ?  

Thanks advance .

 

Best regards,

Kevin Liu

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.live555.com/pipermail/live-devel/attachments/20091215/78b40922/attachment-0001.html>


More information about the live-devel mailing list