ha7ilm / openwebrx

Open source, multi-user SDR receiver software with a web interface
https://sdr.hu/openwebrx
GNU Affero General Public License v3.0
980 stars 462 forks source link

websocket hang? #127

Closed canthony15 closed 5 years ago

canthony15 commented 5 years ago

I am creating a modified version of openwebrx tailored more to my NDB hobby. I have it running on the local network but I ran into an issue when I set up port forwarding to the outside. Running from the outside, everything is OK for about 8 minutes and then waterfall and audio stop. After a while the server says that the spectrum queue is full and closes the connection. My connection is low performance at my home location with less than 1Mb upload but network usage shows less than 300K. To be sure, I disabled audio by not sending the start message and set the fft_fps to 1. It still fails at about 8 minutes. It appears to be the connection time rather than a queue filling up somewhere. The Chrome console shows the WS stream just stopping.

Anyway, I am thinking that this might be related to my ISP (Centurylink) but I thought it would be worth bringing up here so that others who might see this sort of issue will know that they are not alone. If you have seen anything like this I would be interested in any information you might have. I have gone through the code and I cannot see anything that would make this happen. I am inexperienced with websockets and such so I could be missing something.

canthony15 commented 5 years ago

I should also mention that the radio was eliminated by replacing it with a random number generator and pv in the config file. The radio itself is totally out of the picture. The problem did not change.

ha7ilm commented 5 years ago

Check if you run out of memory with Chrome (although that is not likely to happen after 8 minutes).

canthony15 commented 5 years ago

I did that and the memory is fine. To be sure I commented out the push to the waterfall queue and it still fails.

ha7ilm commented 5 years ago

Thank you for your report. I don't know then why it fails.

canthony15 notifications@github.com ezt írta (időpont: 2019. febr. 20., Sze 18:42):

I did that and the memory is fine. To be sure I commented out the push to the waterfall queue and it still fails.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/simonyiszk/openwebrx/issues/127#issuecomment-465681914, or mute the thread https://github.com/notifications/unsubscribe-auth/AFoUMKRmYaSkR8neMjEaSpnn-d9p5p3yks5vPYkGgaJpZM4bFotS .

canthony15 commented 5 years ago

Here is an interesting capture from the chrome console. The stream stalls at 120558. The server then closes the connection because the spectrum queue fills. But then, at 120921, a spew of frames that must have been queued somewhere spills out. For someone more saavy than me, this probably means something. capture

canthony15 commented 5 years ago

Update. It does not fail when running on chrome in my old samsung S3 phone.

canthony15 commented 5 years ago

The problem was solved by replacing the DSL modem (Actiontec Q1000) with a Zyxel unit. I will close this now.