![]() |
#1 |
Junior Member
Join Date: Sep 2013
Posts: 3
|
Autodumpusers doesn't work
Hi guys,
I have made deploy of the SHOUTcast DNAS 2.0 and SHOUTcast Transcoder, it works fun, but I have an issue in the dj transitions. My file config is: code: The problem is: all the clients are desconnected when the server have no source. I tested kicking the transcoder (autodj) and while it's reconnecting all clients have your connections closed. code: First, I didn't make the playlist(lol), second: look on 2013-09-30 02:39:34, 6 connections are closed in that moment. I need a BackupFile parameter? I no think so. |
![]() |
![]() |
![]() |
#2 |
Join Date: Sep 2003
Posts: 27,873
|
probably a DNAS bug though it is not guaranteed that clients will stay connected if there's no data for them to play irrespective of that option - it just allows the DNAS to keep the connection open but if the client wants to close it then they can.
a backup may help just to keep giving them some sort of audio but that causes a number of other issues of its own. though if you're trying to keep clients when there's no source irrespective of what has caused it then no matter what you will see client connections drop when it goes dead as there's little point for most of them to stay on what is a dead stream. |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: Sep 2013
Posts: 3
|
Hi DrO,
the client connections are "controlled" by me, I'm using jwplayer (html5/flash) and I don't have this issue when the server is running the old shoutcast version. I have implemented the backup file but I couldn't see this to work, the connections are closed before it to be called: code: Look on 2013-09-30 16:01:29 and 2013-09-30 16:01:55. ![]() |
![]() |
![]() |
![]() |
#4 |
Join Date: Sep 2003
Posts: 27,873
|
as i said, it's probably then a bug in the DNAS but to reiterate, autodumpusers has never been guaranteed to keep connections alive (and if anything, it doing that is a bug in itself). though i've not looked at things closely as i'm on a phone at the moment and tbh just dropping it in a forum post makes it pretty difficult to read such logs properly.
|
![]() |
![]() |
![]() |
#5 |
Junior Member
Join Date: Sep 2013
Posts: 3
|
Thank you, DrO.
How I cannot do anything about the "bug", so, the solution that I found was make a downgrade to 1.9.8 version, this worked, the connections aren't anymore closed. Thank you again for your attention. |
![]() |
![]() |
![]() |
#6 |
Junior Member
Join Date: Nov 2015
Posts: 4
|
Sorry to bump an old thread but this is still a problem in 2015 with the latest dnas v2. Whenever I kick the source, the listeners winamp will stop immeditately and not try to buffer or wait for the connection to return. Using dnas 1.9.8 this is not a problem at all. Is there any way to make v2 function the same as v1 in regards to kicking the source?
|
![]() |
![]() |
![]() |
#7 |
Forum King
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,555
|
how many clients have you tried this with? i only ask because what happens when the dnas kills a listener connection has as much to do with client response as server action. the v2 server presents a "different" stream than the v1 dnas in that the v2 simply appears to be an audio file, so browsers and players will do what they usually do with respect to any file served up via http.
/* v2 HTML5 / Player test pages DigitalMixNYC, DigitalMixNYCbx | DNAS Status: Now Playing js codes (scaststatus_X.php) | PortForward.com | Upload/Download Speed Test | No-IP.com: Free Dynamic DNS | In the YP | dnasDir */ |
![]() |
![]() |
![]() |
#8 |
Junior Member
Join Date: Nov 2015
Posts: 4
|
DNAS v1 - connect to stream with winamp. music plays. kick source. winamp goes in to a state of "buffering" waiting for the connection to come back. If it comes back in 30 seconds, then the stream resumes without having to hit play again.
DNAS v2 - connect to stream with winamp. music plays. kick source. winamp stops immedidately and does not ever go in to a state of buffering waiting for the connection to come back. Is there a design change or flaw that made v2 not have the same behavior as v1? Switching back to dnas 1.9.8 makes the work as expected but I'd rather get modernized and run v2. |
![]() |
![]() |
![]() |
#9 |
Major Dude
Join Date: Mar 2011
Posts: 576
|
That is the reason. Set a backupfile in the v2 config-file which is starting when a source dropped.
|
![]() |
![]() |
![]() |
#10 |
Junior Member
Join Date: Nov 2016
Posts: 27
|
I and my customers also see this problem in the SHOUTcast v2.
autodumpusers option is ignored Please fix it. In SHOUTcast 1.9.8 everything works well. |
![]() |
![]() |
![]() |
#11 |
Major Dude
Join Date: Mar 2011
Posts: 576
|
Desavil, read my quote. Think about it shortly, read the manual to compare it and you should understand why 'autodumpusers' was not created to keep connections alive if a source has dropped. No source - no data for streaming. Silence on a stream makes no sense. For this case the DNAS has the backupfile param or you have to setup a source-manager.
![]() |
![]() |
![]() |
![]() |
#12 | |
Junior Member
Join Date: Nov 2016
Posts: 27
|
Quote:
This works well on SHOUTcast 2 if the source itself disconnects. If I use the kick source function it causes this problem. The backup file does not work too well. If DJ connect immediately after the next DJ, the stream stops when I use backup file. This is a big problem for SHOUTcast hosting providers. Where clients use different bitrates. |
|
![]() |
![]() |
![]() |
#13 |
Major Dude
Join Date: Mar 2011
Posts: 576
|
From a technical point: scroll up and read DrO's posts!
From my point: Setup an source manager / transcoder. Your DJs can stream with different bitrates on the transcoder, which is connected on sc_serv. The transoder will encode each source to a defined bitrate. Create a 24/7 playlist in the source-manger, which will start, if no live-dj is connected and all is fine. |
![]() |
![]() |
![]() |
#14 | |
Junior Member
Join Date: Nov 2016
Posts: 27
|
Quote:
I am a SHOUTcast service provider (hosting) and it is not so easy for my customers. Dro clearly wrote "probably a DNAS bug" and "it's probably then a bug in the DNAS". |
|
![]() |
![]() |
![]() |
#15 |
Junior Member
Join Date: Jan 2017
Posts: 3
|
I have the same problem.
All the clients are desconnected when the server have no source. How long we have to wait for a fixed this bug? |
![]() |
![]() |
![]() |
#16 |
Forum King
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,555
|
maybe not a bug - when there's no source the dnas does not send any data - the tcp connections made by listeners will eventually time out and be closed.
/* v2 HTML5 / Player test pages DigitalMixNYC, DigitalMixNYCbx | DNAS Status: Now Playing js codes (scaststatus_X.php) | PortForward.com | Upload/Download Speed Test | No-IP.com: Free Dynamic DNS | In the YP | dnasDir */ |
![]() |
![]() |
![]() |
#17 |
Junior Member
Join Date: Jan 2017
Posts: 3
|
No. It is not normal.
I do not use sc_trans. When you change the dj, disconnects all listeners. In shoutcast v1 this problem was not there. |
![]() |
![]() |
![]() |
#18 |
Forum King
Join Date: Aug 2004
Location: Hollis, Queens/The Bronx, NYC
Posts: 3,555
|
all i can say is times are changing -- there is so much media being delivered by internet streams -- the tcp stack and applications that depend on it are becoming very bandwidth efficient:
players buffer -- they fill their buffer and add to it as they use the buffered data. if it stops, they're gonna wait for more, but not forever. it's actually more efficient to drop the connection and re-buffer the stream, since the buffer is empty anyway, because why has the stream stopped? in your dnas log, you should see these reconnection attempts, but until there is a new source, they will be denied access. from a dnas stats standpoint - listeners on a stream with no source are, in a way, undefined. /* v2 HTML5 / Player test pages DigitalMixNYC, DigitalMixNYCbx | DNAS Status: Now Playing js codes (scaststatus_X.php) | PortForward.com | Upload/Download Speed Test | No-IP.com: Free Dynamic DNS | In the YP | dnasDir */ |
![]() |
![]() |
![]() |
#19 |
Junior Member
Join Date: Jan 2017
Posts: 3
|
The problem (disconnected all listeners) occurs when using the "kick source".
Very please add an option in the shoutcast 2 that allows you to enable or disable the ejection of the listeners during the use of "kick source". |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|