# Configure liverepeater reconnect behavior

**URL:** https://community.wowza.com/t/configure-liverepeater-reconnect-behavior/34731
**Category:** Wowza Streaming Engine
**Created:** [April 16, 2014, 8:53am UTC](https://community.wowza.com/t/configure-liverepeater-reconnect-behavior/34731 "2014-04-16T08:53:07Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Jay\_Charles](https://avatars.discourse-cdn.com/v4/letter/j/c89c15/32.png) [@Jay\_Charles](https://community.wowza.com/u/Jay_Charles)
#### Post date: [April 16, 2014, 8:53am UTC](https://community.wowza.com/t/configure-liverepeater-reconnect-behavior/34731/1 "2014-04-16T08:53:07Z")

</div>

Hi Everyone,

I’d like to modify the reconnect behavior on my liverepeater-edge. Is there a way I can listen for the disconnect event so I can programatically determine whether to reconnect or not?

Thanks,

Jay

---

<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 16, 2014, 1:55pm UTC](https://community.wowza.com/t/configure-liverepeater-reconnect-behavior/34731/2 "2014-04-16T13:55:45Z")

</div>

What player are you using, Jay?

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 16, 2014, 3:27pm UTC](https://community.wowza.com/t/configure-liverepeater-reconnect-behavior/34731/3 "2014-04-16T15:27:22Z")

</div>

Jay,

You can send RTMP notifications from a Wowza origin to its edges. Let me look around for an example of that

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 16, 2014, 4:53pm UTC](https://community.wowza.com/t/configure-liverepeater-reconnect-behavior/34731/4 "2014-04-16T16:53:10Z")

</div>

Jay,

Try setting edge Application.xml StreamValidator /Enable to “false” and add /MediaCaster /streamTimeout Property set to “0”

```auto
<Property>
	<Name>streamTimeout</Name>
	<Value>0</Value>
	<Type>Integer</Type>
</Property>

```

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 16, 2014, 5:05pm UTC](https://community.wowza.com/t/configure-liverepeater-reconnect-behavior/34731/5 "2014-04-16T17:05:22Z")

</div>

Jay,

That is actually just the built-in Advanced MediaCaster Monitor in Wowza 4. In Wowza 3, if you have enabled the Advanced MediaCaster Monitor then you will want to disable that.

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, 11:22pm UTC](https://community.wowza.com/t/configure-liverepeater-reconnect-behavior/34731/6 "2014-04-21T23:22:59Z")

</div>

Jay,

You can turn off re-connection attempts by adding the streamTimeout Property set to “0” to Application.xml /MediaCaster Properties container:

```auto
<Property>
	<Name>streamTimeout</Name>
	<Value>0</Value>
	<Type>Integer</Type>
</Property>			

```

Richard

---

<div class="post-metadata">

### Author: ![Jay\_Charles](https://avatars.discourse-cdn.com/v4/letter/j/c89c15/32.png) [@Jay\_Charles](https://community.wowza.com/u/Jay_Charles)
#### Post date: [April 16, 2014, 9:01am UTC](https://community.wowza.com/t/configure-liverepeater-reconnect-behavior/34731/7 "2014-04-16T09:01:38Z")

</div>

Hi Richard,

I’m using a number of different players and STB’s. Really, I just want to prevent the liverepeater-edge from trying to reconnect to an origin I know to be unavailable. I have a multi origin network, and encoders can move between origins from time to time.

I’m using a class that implements IMediaStreamNameAliasProvider2 to locate my origin when a stream is first requested, but if the origin application shuts down while the edge is connected, I want to be able to locate the origin again instead of having the liverepeater try to reconnect on its own.

This needs to be entirely server side, and have no player dependency.

---

<div class="post-metadata">

### Author: ![Jay\_Charles](https://avatars.discourse-cdn.com/v4/letter/j/c89c15/32.png) [@Jay\_Charles](https://community.wowza.com/u/Jay_Charles)
#### Post date: [April 16, 2014, 11:45am UTC](https://community.wowza.com/t/configure-liverepeater-reconnect-behavior/34731/8 "2014-04-16T11:45:18Z")

</div>

Thanks Richard.

I’m wondering though, is there nothing I can do at the edge to simply tell the repeater to not automatically reconnect?

---

<div class="post-metadata">

### Author: ![Jay\_Charles](https://avatars.discourse-cdn.com/v4/letter/j/c89c15/32.png) [@Jay\_Charles](https://community.wowza.com/u/Jay_Charles)
#### Post date: [April 16, 2014, 11:58am UTC](https://community.wowza.com/t/configure-liverepeater-reconnect-behavior/34731/9 "2014-04-16T11:58:16Z")

</div>

Thanks Richard.

Is the StreamValidator config available in 3.5.x? I haven’t come across that one before

---

<div class="post-metadata">

### Author: ![Jay\_Charles](https://avatars.discourse-cdn.com/v4/letter/j/c89c15/32.png) [@Jay\_Charles](https://community.wowza.com/u/Jay_Charles)
#### Post date: [April 16, 2014, 12:17pm UTC](https://community.wowza.com/t/configure-liverepeater-reconnect-behavior/34731/10 "2014-04-16T12:17:59Z")

</div>

Great. Thanks again Richard.

---

<div class="post-metadata">

### Author: ![Jay\_Charles](https://avatars.discourse-cdn.com/v4/letter/j/c89c15/32.png) [@Jay\_Charles](https://community.wowza.com/u/Jay_Charles)
#### Post date: [April 16, 2014, 12:29pm UTC](https://community.wowza.com/t/configure-liverepeater-reconnect-behavior/34731/11 "2014-04-16T12:29:37Z")

</div>

Hmm… seems the streamTimeout property didn’t have an effect. Are there other properties available? Perhaps one that sets the number of reconnect attempts to zero?

---

<div class="post-metadata">

### Author: ![Jay\_Charles](https://avatars.discourse-cdn.com/v4/letter/j/c89c15/32.png) [@Jay\_Charles](https://community.wowza.com/u/Jay_Charles)
#### Post date: [April 18, 2014, 10:54am UTC](https://community.wowza.com/t/configure-liverepeater-reconnect-behavior/34731/12 "2014-04-18T10:54:27Z")

</div>

Any ideas on other configs?
