On Tue, May 23, 2017 at 11:51 +0100, Stuart Henderson wrote: > (replying to an old mail), > > On 2017/03/16 18:07, Claudio Jeker wrote: > > On Thu, Mar 16, 2017 at 03:46:38PM +0100, Eric JACQUOT wrote: > > > Hi all, > > > > > > I had some problems with dlna server (minidlna) and a lot of cuts and > > > crashes of the client when playing videos. > > > It seems that the default net.inet.udp.sendspace (9216 by default) > > > variable is not suitable. I have increased it as a result of the > > > capacities of my network and I no longer have issue of broadcasting > > > videos. > > > It may be time to increase the default value or document all ports based > > > on dlna accordingly. > > > Not having much time for these actions, thank you for giving me the best > > > way so that I provide the necessary diffs. > > > > > > Maybe I'm wrong so tell me... > > > > > > > Please change minidlna to use a setsockopt() to increase the send buffer. > > Doing this globally is not the right fix. > > I don't see a sockopt to control udp_sendspace per-socket, am I missing > something? Nameservers easily run into the default limit too (I've been > running with increased net.inet.udp.sendspace on nameservers for ages).. >
Isn't SO_SNDBUF what you're looking for? tcpbench(1) does it via -S for instance.