support dead-loop detect for forwarder and transcoder.