[vlc-devel] [vlc-commits] access/udp: use overflow block on recvmsg() to adjust mtu
ileoo at videolan.org
Tue Dec 4 08:38:31 CET 2018
On Sun, Nov 04, 2018 at 08:23:28PM +0000, Nick Briggs wrote:
> vlc | branch: master | Nick Briggs <nicholas.h.briggs at gmail.com> | Sat Nov 3 14:30:35 2018 +0200| [4f633b7ad7af54e3be2799b0e40580346e9feaba] | committer: Ilkka Ollakka
> access/udp: use overflow block on recvmsg() to adjust mtu
> Add second block on recvmsg() to check if we need to adjust mtu to be
> higher. With this approach, we will do extra memcpy and allocation in
> codepaths where mtu should be increased, but not on normal codepath.
> Allocates the minimum sized overflow block to capture the maximum
> sized datagram when combined with the normal (mtu sized) block.
> This uses the same approach on all platforms and doesn't rely on
> MSG_TRUNC in linux case and something else in other cases.
> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=4f633b7ad7af54e3be2799b0e40580346e9feaba
Any objection to backport this to 3.0 branch?
More information about the vlc-devel