# Can I get pingTimeout event?

**URL:** https://community.wowza.com/t/can-i-get-pingtimeout-event/46335
**Category:** Wowza Developer Dojo
**Tags:** wowza-streaming-server-java-api
**Created:** [December 8, 2015, 4:46am UTC](https://community.wowza.com/t/can-i-get-pingtimeout-event/46335 "2015-12-08T04:46:26Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Junichiro\_Takagi](https://avatars.discourse-cdn.com/v4/letter/j/57b2e6/32.png) [@Junichiro\_Takagi](https://community.wowza.com/u/Junichiro_Takagi)
#### Post date: [December 8, 2015, 4:46am UTC](https://community.wowza.com/t/can-i-get-pingtimeout-event/46335/1 "2015-12-08T04:46:26Z")

</div>

Hi,

On our service, iOS client app streams rtmp to wowza server, but sometimes the stream is disconnected and ‘pingtimeout’ error is logged on wowza server.

I want to detect the pingtimeout event as soon as possible and notify it to application server.

How to do this?

I found an onDisconnect event listener but it has some delay after pingtimeout.

ValidationFrequency param relate to the delay?

Regards.

---

<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: [January 7, 2016, 8:45am UTC](https://community.wowza.com/t/can-i-get-pingtimeout-event/46335/2 "2016-01-07T08:45:17Z")

</div>

For rtmp, onDisconnect should be soon after any pingTimeout.

For HLS there is little you can do about the delay. Except have smaller chunks with smaller key frame intervals and cupertinoChunkDurationTarget.

There is not a pingTimeout listener as far as I know.

Regards,

Salvadore
