[vlc-devel] [PATCH 2/2] access/udp: Define MSG_TRUNC on recv call

Francois Cartegnie fcvlcdev at free.fr
Mon Oct 15 17:32:51 CEST 2018

Le 15/10/2018 à 17:23, Ilkka Ollakka a écrit :
> On Mon, Oct 15, 2018 at 04:30:56PM +0200, Francois Cartegnie wrote:
>> Le 15/10/2018 à 16:21, Ilkka Ollakka a écrit :
>>> recv() needs MSG_TRUNC flag so it will tell actual data-size if truncate
>>> would happen additional to setting flag for it.
>> There's a regression on UDP since those changes which are supposed to
>> workaround buffer/block bloat.
>> But I doubt that solves the case of payloads > 1316 on non linux or
>> without msg_trunc.
> Yes, you are right, it doesn't solve it on linux < 2.2 or non-linux
> systems. Do you have such system to test on? I have one idea that should
> work in those cases.

I don't see how to fix both issues without realloc/memcpy or using a
block with shared backend buffer

Francois Cartegnie
VideoLAN - VLC Developer

More information about the vlc-devel mailing list