[vlc-devel] [PATCH 2/2] chromecast: don't close the client connection

Rémi Denis-Courmont remi at remlab.net
Thu Oct 29 15:41:50 CET 2020


Le torstaina 29. lokakuuta 2020, 15.28.40 EET Pierre Ynard via vlc-devel a 
écrit :
> > > Seems it was designed to expect no timeout
> > 
> > That cannot be achieved with the TCP implementations provided by
> > the OSes that VLC runs on. *All* of them will fatally time-out the
> > connection if data remains in the send buffer for too long. (Only
> > way to avoid this is to write a custom TCP stack, which requires raw
> > sockets privileges.)
> 
> Can't you at least raise the TCP timeout value on that socket with
> setsockopt() and some option? Isn't this just what TCP_USER_TIMEOUT will
> do?

Does that actually work and is it portable and unprivileged?

-- 
雷米‧德尼-库尔蒙
http://www.remlab.net/





More information about the vlc-devel mailing list