# Reconnecting to CDN too quickly doesn't re-publish

**URL:** https://community.wowza.com/t/reconnecting-to-cdn-too-quickly-doesnt-re-publish/42595
**Category:** Wowza Streaming Engine
**Created:** [May 18, 2015, 4:33pm UTC](https://community.wowza.com/t/reconnecting-to-cdn-too-quickly-doesnt-re-publish/42595 "2015-05-18T16:33:14Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Jonathan\_Daily](https://avatars.discourse-cdn.com/v4/letter/j/ecd19e/32.png) [@Jonathan\_Daily](https://community.wowza.com/u/Jonathan_Daily)
#### Post date: [May 18, 2015, 4:33pm UTC](https://community.wowza.com/t/reconnecting-to-cdn-too-quickly-doesnt-re-publish/42595/1 "2015-05-18T16:33:14Z")

</div>

Hello,

We are pushing our RTMP streams to the MirrorImage CDN using push publishing profiles. When we test a situation where a user is publishing a stream and the connection drops and then they reconnect we find that the stream republishes to Wowza just fine. However if the reconnect happens in less than 20 seconds it does not properly re-push to the CDN. In which case our end users consuming from the CDN do not get the stream but the publisher thinks they are broadcasting just fine. Generally speaking, if we force the reconnect to take 30 seconds it works just fine.

Does anyone know why this may be happening and/or have suggestions on how to mitigate this issue and bring the reconnect time down \< 10 seconds or so?

Thanks!

- jonathan

(we’re on Wowza 4.1.2)

---

<div class="post-metadata">

### Author: ![Jason\_Hilton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hilton/32/437_2.png) [@Jason\_Hilton](https://community.wowza.com/u/Jason_Hilton)
#### Post date: [May 26, 2015, 1:20pm UTC](https://community.wowza.com/t/reconnecting-to-cdn-too-quickly-doesnt-re-publish/42595/2 "2015-05-26T13:20:08Z")

</div>

Hi,

It sounds like the stream could still be active on the CDN side which means when you publish it again, it fails, possibly due to the stream already existing. If this is the case, I’m not sure if there is anything that can be done one the Wowza side as this would require the stream to be destroyed on the CDN side. To troubleshoot further I recommend creating a ticket so we can take a closer look as I can only guess without the configuration and log files.

To create a ticket, send an email to support@wowza.com. Ensure that you include a ZIP file containing the [Wowza-Install]/conf/ and [Wowza-Install]/logs/ directories for analysis.

Please make sure you provide logs which show Wowza server starting.

If you are not sure how to get this information please see the following tutorial.

[How to create a compressed zip file in Windows, OS X, and Linux](https://www.wowza.com/docs/how-to-create-a-compressed-zip-file-in-windows-os-x-and-linux)

Regards,

Jason

---

<div class="post-metadata">

### Author: ![SiggDev](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@SiggDev](https://community.wowza.com/u/SiggDev)
#### Post date: [July 31, 2015, 11:19am UTC](https://community.wowza.com/t/reconnecting-to-cdn-too-quickly-doesnt-re-publish/42595/3 "2015-07-31T11:19:34Z")

</div>

Just an idea in case you haven’t solved the problem. It may be the case that the CDN caches the error response while the content is not available and serves that to customer even though the stream is active again. If the negative cache is 30 seconds, this could explain the delay you are seeing.
