Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icecast stream gets stuck in a 'Connecting' state after a network interruption #1892

Open
redrob opened this issue Apr 19, 2024 · 0 comments
Labels

Comments

@redrob
Copy link

redrob commented Apr 19, 2024

sdrtrunk Version
nightly 2024-02-13T09:27:56

Describe the bug
Icecast stream gets stuck in a 'Connecting' state after a network interruption or similar. There is no automatic timeout function that forces a full connect reset. For example, the network was interrupted last night at 19:42 but was restored minutes later. The stream stopped at 19:42 and never reconnected on its own. I had to manually disable and re-enable the stream.

To Reproduce
Steps to reproduce the behavior:

  1. Add icecast stream (server running Icecast 2.4.0-kh15)
  2. Make sure it is in 'Connected' status.
  3. Induce a momentary network interruption (ethernet/WiFi disconnect, etc)
  4. Restore network connection

Expected behavior
stream should automatically timeout after a certain period, completely reset and attempt a reconnect.

Application Log

20240418 194224.089 [NioProcessor-74] ERROR i.g.d.a.b.i.IcecastHTTPAudioBroadcaster - Broadcast error  [462MB/724MB 63%]
java.net.SocketException: Connection reset
	at java.base/sun.nio.ch.SocketChannelImpl.throwConnectionReset(Unknown Source)
	at java.base/sun.nio.ch.SocketChannelImpl.read(Unknown Source)
	at org.apache.mina.transport.socket.nio.NioProcessor.read(NioProcessor.java:378)
	at org.apache.mina.transport.socket.nio.NioProcessor.read(NioProcessor.java:47)
	at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:519)
	at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$1200(AbstractPollingIoProcessor.java:68)
	at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.process(AbstractPollingIoProcessor.java:1224)
	at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.process(AbstractPollingIoProcessor.java:1213)
	at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:683)
	at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)
20240418 194224.090 [NioProcessor-74] INFO  i.g.d.a.b.AudioStreamingBroadcaster - [YVR Ops] status: Disconnected  [462MB/724MB 63%]

Desktop (optional - complete the following information):

  • OS: windows 10 enterprise
  • CPU Cores: 4 cores Intel
  • RAM: 8 GB

Not sure if this is related to issue #1398 or #1401 but I would appreciate an evaluation.

Thanks,

redrob!

@redrob redrob added the bug label Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant