I use an encoder that streams on the multicast port which is consumed through your app and re-streams to customers.
There is one issue I faced. Sometimes the source on the encoder may be down. The port may be active but does not send any data.
When such an instance happens, the app goes in an infinite loop to receive the data on the port.
Is there a possibility to set a timeout on the receiver to close the connection for the client, instead of looping continuously.