# Wowza closes connection immediately if live stream is not found.

**URL:** <https://community.wowza.com/t/wowza-closes-connection-immediately-if-live-stream-is-not-found/40908>\
**Category:** Wowza Streaming Engine\
**Created:** [April 20, 2014, 6:11pm UTC](https://community.wowza.com/t/wowza-closes-connection-immediately-if-live-stream-is-not-found/40908 "2014-04-20T18:11:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rajdep\_Rath](https://avatars.discourse-cdn.com/v4/letter/r/bcef8e/32.png) [@Rajdep\_Rath](https://community.wowza.com/u/Rajdep_Rath)\
**Post date:** [April 20, 2014, 6:11pm UTC](https://community.wowza.com/t/wowza-closes-connection-immediately-if-live-stream-is-not-found/40908/1 "2014-04-20T18:11:10Z")

</div>

Hi,

i dunno if this question is previously answered or not. But a serious issue i see with wowza is that as soon as live stream stops even for 1 second it closes connection on viewers. As a result even a slight pause in between broadcast results is viewers being cut off and wont resume unless they press play again or may be reload the entire page. Is there a setting in wowza that can change this behaviour ? Typically on a live stream a player should keep waiting for stream. whenever the stream starts player will start showing frames. But wowza does not behave like that. It simply wont wait. I have seen both red5/fms wait for stream to resume or start.

can some one give any advice here ? Is there a timeout setting ?

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [April 21, 2014, 9:27am UTC](https://community.wowza.com/t/wowza-closes-connection-immediately-if-live-stream-is-not-found/40908/2 "2014-04-21T09:27:41Z")

</div>

What protocols are you using? And what clients are experiencing this issue?

Salvadore

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [April 21, 2014, 4:35pm UTC](https://community.wowza.com/t/wowza-closes-connection-immediately-if-live-stream-is-not-found/40908/3 "2014-04-21T16:35:10Z")

</div>

Hi,

It is the player doing that, Wowza does not close the connection. If you use the Wowza Test RTMP player you will not see this, but many commercial players will close the connection if the live stream is not there. There is a JW Player example of using their javascript API to keep trying to reconnect in [the JW player guide](https://www.wowza.com/docs/how-to-use-jw-player-with-wowza-streaming-engine) in case of error.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [April 21, 2014, 6:07pm UTC](https://community.wowza.com/t/wowza-closes-connection-immediately-if-live-stream-is-not-found/40908/4 "2014-04-21T18:07:44Z")

</div>

I haven’t tried it yet, but you might be able to [use this example that way](https://www.wowza.com/docs/how-to-do-pre-roll-and-playlist-for-ios-a-client-side-work-around%28a-client-side-work-around%29).

Richard

---

<div class="post-metadata">

**Author:** ![Rajdep\_Rath](https://avatars.discourse-cdn.com/v4/letter/r/bcef8e/32.png) [@Rajdep\_Rath](https://community.wowza.com/u/Rajdep_Rath)\
**Post date:** [April 21, 2014, 8:25am UTC](https://community.wowza.com/t/wowza-closes-connection-immediately-if-live-stream-is-not-found/40908/5 "2014-04-21T08:25:16Z")

</div>

Am broadcasting using ffmpeg + rtmp protocol. Playback is in rtmp and hls. The issue is it takes ffmpeg 1 sec delay to complete one broadcast and and second one. In between this clients get connection closed. I have used strobe media playback for flash and html5 video tag for hls on iOS.

---

<div class="post-metadata">

**Author:** ![Rajdep\_Rath](https://avatars.discourse-cdn.com/v4/letter/r/bcef8e/32.png) [@Rajdep\_Rath](https://community.wowza.com/u/Rajdep_Rath)\
**Post date:** [April 21, 2014, 8:44am UTC](https://community.wowza.com/t/wowza-closes-connection-immediately-if-live-stream-is-not-found/40908/6 "2014-04-21T08:44:37Z")

</div>

Hi Richard, thank you for your reply. What about handling of the html5 tag based hls stream. Playback stops immediately and does not resume when live stream is back after the 1 sec delay. How can I make html5 keep up?

Also I can confirm that same player with red5 does not close connection,
