INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: DLNA server "lost" after some time of no activity.  (Read 1478 times)

herr_schneider

  • Junior Woodchuck
  • **
  • Posts: 74
DLNA server "lost" after some time of no activity.
« on: June 25, 2014, 02:15:22 pm »

Hi there again,

while .145 seems to resolve the issue of DLNA after sleep, I now have figured that after several hours with no client accessing the DLNA server is lost again. This is reproducable behaviour and no client / controller will see the server until restart... I have tested the same procedure with other DLNA servers running exclusively and in parallel, but those did not get lost...

Your support is appreciated
Marcus
Logged

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13870
Re: DLNA server "lost" after some time of no activity.
« Reply #1 on: July 10, 2014, 10:36:15 pm »

Hi there again,

while .145 seems to resolve the issue of DLNA after sleep, I now have figured that after several hours with no client accessing the DLNA server is lost again. This is reproducable behaviour and no client / controller will see the server until restart... I have tested the same procedure with other DLNA servers running exclusively and in parallel, but those did not get lost...

Your support is appreciated
Marcus
Running multiple servers in parallel on the same machine isn't a good idea since they all use the same port for SSDP discovery and this seems to cause lost packets.
In general we also recommend turning off the Windows Media Sharing service as well since it also uses that port.
Logged

AndrewFG

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 3392
Re: DLNA server "lost" after some time of no activity.
« Reply #2 on: July 11, 2014, 07:40:51 am »

Running multiple servers in parallel on the same machine isn't a good idea since they all use the same port for SSDP discovery and this seems to cause lost packets.
In general we also recommend turning off the Windows Media Sharing service as well since it also uses that port.

Bob, I haven't completely thought this through, so this quick comment may be completely off the mark, but do you set the SO_REUSE_ADDRESS attribute on your SSDP sockets? This allows multiple clents on the same machine to listen on the same port; otherwise a single client gets to steal the show.
Logged
Author of Whitebear Digital Media Renderer Analyser - http://www.whitebear.ch/dmra.htm
Author of Whitebear - http://www.whitebear.ch/mediaserver.htm

bob

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 13870
Re: DLNA server "lost" after some time of no activity.
« Reply #3 on: July 11, 2014, 10:39:31 am »

Bob, I haven't completely thought this through, so this quick comment may be completely off the mark, but do you set the SO_REUSE_ADDRESS attribute on your SSDP sockets? This allows multiple clents on the same machine to listen on the same port; otherwise a single client gets to steal the show.

It looks like it's done unconditionally for our UDP sockets (of which there is only 1900)
Also, checking the multicast/broadcast issues.
Logged
Pages: [1]   Go Up