nginx-rtmp-module icon indicating copy to clipboard operation
nginx-rtmp-module copied to clipboard

Drop idle publisher not working properly

Open izemize opened this issue 12 years ago • 7 comments

Hi

nginx rtmp can't drop streaming connection, When i disable camera access in flash. Thats normal?

drop_idle_publisher 5s;

edit: when idle publisher not dropped, rtmp module recording 0B flv.

izemize avatar Mar 30 '14 13:03 izemize

Sorry I can't understand you. Drop idle publisher feature disconnects idle (not sending any data) publisher connections after the specified time interval.

arut avatar Mar 30 '14 17:03 arut

hi, I met the same issue. I set the "drop_idle_publisher 10s;" and "idle_streams off;". One publisher connect with 0B in/out bytes, it's state always "idle" which grabs from "/stat", after 91 seconds, the connection closed.

I need to confirm that "Note this only works when connection is in publish mode (after sending publish command)." which mentioned in https://github.com/arut/nginx-rtmp-module/wiki/Directives#drop_idle_publisher, is that mean the stream should be published firstly, then drop_idle_publisher works?

jazzhuang avatar Apr 21 '15 07:04 jazzhuang

I have the same problem, drop_idle_publisher does not take effect.

dengshaodong avatar Dec 23 '15 08:12 dengshaodong

I have the same problem drop_idle_publisher 5s

mystream | 5 |   | 0 Kb/s | 720x480 | 0 |   | 0 Kb/s |   |   | 0 KB | 0 KB | 0 Kb/s | 0 Kb/s | idle | 1m 45s

Publisher not droped

thegobot avatar Mar 02 '19 04:03 thegobot

@thegobot have you defined the drop_idle_publisher inside application block? I am also using the "drop_idle_publisher 10s;" and "idle_streams off;" and my streams are free to be used for publishing but strangely nginx still logs 0B data as below.

85.10.195.159 [06/Mar/2019:16:56:03 +0100] "live/stream" "kegeln-liedolsheim" "?" 105997504 412 "" "LNX 9,0,124,2" PLAY 0 "0s" 85.10.195.159 [06/Mar/2019:16:57:02 +0100] "live/stream" "kegeln-liedolsheim" "?" 105997512 412 "" "LNX 9,0,124,2" PLAY 0 "0s" 136.243.150.27 [06/Mar/2019:16:57:03 +0100] "live/stream" "kegeln-liedolsheim" "?" 105997514 412 "" "LNX 9,0,124,2" PLAY 0 "0s" 148.251.140.26 [06/Mar/2019:16:57:03 +0100] "live/stream" "gip-2" "?" 105997516 412 "" "LNX 9,0,124,2" PLAY 0 "0s" 148.251.140.26 [06/Mar/2019:16:58:02 +0100] "live/stream" "gip-2" "?" 105997524 412 "" "LNX 9,0,124,2" PLAY 0 "0s" 85.10.195.159 [06/Mar/2019:16:58:03 +0100] "live/stream" "kegeln-liedolsheim" "?" 105997526 412 "" "LNX 9,0,124,2" PLAY 0 "0s" 136.243.150.27 [06/Mar/2019:16:58:03 +0100] "live/stream" "kegeln-liedolsheim" "?" 105997527 412 "" "LNX 9,0,124,2" PLAY 0 "0s" 136.243.150.27 [06/Mar/2019:16:59:02 +0100] "live/stream" "kegeln-liedolsheim" "?" 105997536 412 "" "LNX 9,0,124,2" PLAY 0 "0s"

nisujju avatar Mar 06 '19 16:03 nisujju

@nisujju I tried to define it everywhere: server, application, rtmp... No effect!

thegobot avatar Mar 07 '19 01:03 thegobot

@thegobot it will work only if the publish command is executed on the stream. I checked it today for my case and it did worked. During an improper disconnection it appeared that PUBLISH command was still executing with no data to play for. drop_idle_publisher did the trick inside application block I am using it. I can only suspect that in your case either the nginx changes are not being picked. You might have to check if publish command is being executed or not. for the particular stream.

nisujju avatar Mar 07 '19 11:03 nisujju