Occupied broadcast?

neogeo

Member
On my broadcast tests I always use the same end point: wss://xxx:8443/12345678
After some broadcast/stream tests it seems that end point remains "occupied"
When this happens I am not able to broadcast to that end point, no errors on the player front end, but I when I try to play the stream it says "PLAYING" and on the logs I see this:

flashphoner_manager.log
"name" : "12345678",
"published" : false,
"hasVideo" : true,
"hasAudio" : true,
"status" : "PLAYING",

The suspicious entry is "published" : false which probably indicates that nobody broadcasts which is the correct. So, question is how to auto terminate end points that nobody broadcasts?
 

Max

Administrator
Staff member
Please describe step by step how to reproduce this.
What streaming example are you using?
How do you stream to server?
What is stream source?
What version of server?
Could you attach a screenshot?

The suspicious entry is "published" : false which probably indicates that nobody broadcasts which is the correct.
published=false
This means stream is playing, not publishing (broadcast source).

So, question is how to auto terminate end points that nobody broadcasts?
Try to set these settings in server.properties
keep_alive.server_interval =2000
keep_alive.probes =2
Your stream should be terminated in 4 seconds after disconnection of the broadcasting source.
 

neogeo

Member
I am using the latest version. I am experimenting with the included examples. I was broadcasting from webcam, then screen sharing, then back to webcam. I was broadcasting all time on the same end point. Then after some tests I could not broadcast anymore to the end point but I was able to play without seeing anything.

All server setting are on defaults.

-----Connection Stats-----
connections=1
connections_rtmfp=0
connections_websocket=1
-----Port Stats-----
ports_sip=0
ports_media=7
ports_rtsp=0
-----Stream Stats-----
streams_webrtc_in=0
streams_webrtc_out=1
streams_rtmfp_in=0
streams_rtmfp_out=0
streams_rtmp_in=0
streams_rtmp_out=0
streams_viewers=
streams_rtsp_in=0
streams_rtsp_out=0
streams_websocket_out=0
streams_rtmp_client_out=0

Check the stats. You see there is one connection which is the player playing the non-broadcasted stream. The above does not display the
streams_viewers=12345678/1 live as it should normally do.

I have not restarted the server yet, let me know if you want me to run anything.
 

Max

Administrator
Staff member
We have received your download link. However your link requires authentication.
Please send authentication details or/and ssh access. We will check configuration.
 

Max

Administrator
Staff member
We have updated your server
1. Updated JDK from 1.7 to 1.8
Code:
java -version
java version "1.8.0_121"
Java(TM) SE Runtime Environment (build 1.8.0_121-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode)
2. Updated WCS version from 2027 to the latest 2141
You can find backup files here: /home/backup-2017-03-18
3. Changed keep alive settings in server.properties
Code:
keep_alive.server_interval=2000
keep_alive.probes=5
4. Added heap size in setenv.sh file
Code:
-Xmx8g -Xms4g
Please check again with the new version of JDK and WCS.
 

neogeo

Member
The problem still persists. In fact it is like that right now.
I see on the stats:
streams_viewers=875960ccAudio/85,875960cc/89

There is nobody streaming or playing right now. I checked it with netstat, no connections at all.

When I attempt to play the stream it says Connected.

Can we debug somehow before we restart?
 

neogeo

Member
The first problem is that we cannot start a new stream at the same end point because it appears to be in use.
And the second is that stats are wrong, we have to see and report how many users are connected but it appears that numbers are wrong.

Attached are the logs.
 

Attachments

neogeo

Member
Just fyi,

Here are the stats without anybody connected on the server.

When I use the player to play either 875960ccAudio or 875960cc it connects (but of course there is no connect).

-----Connection Stats-----
connections=237
connections_rtmfp=0
connections_websocket=237
-----Port Stats-----
ports_sip=0
ports_media=401
ports_rtsp=3
-----Stream Stats-----
streams_webrtc_in=1
streams_webrtc_out=61
streams_rtmfp_in=0
streams_rtmfp_out=0
streams_rtmp_in=0
streams_rtmp_out=8
streams_viewers=875960ccAudio/81,875960cc/85
streams_rtsp_in=0
streams_rtsp_out=0
streams_websocket_out=51
streams_rtmp_client_out=0
 

Max

Administrator
Staff member
We fixed similar issue in latest build 2157
So you can try to update
Code:
service webcallserver update
or test your build in stage environment before deploying to production
 
Top