Page 1 of 1

[SOLVED] active connections shown for wrong server

Posted: September 27th, 2017, 4:50 am
by OneCD
Hello.

Hopefully, I'll explain this correctly. ;)

Environment
SAB 2.3.0 with 'Glitter - Night' skin. Viewed via FireFox 52.3.0 ESR on Debian Stretch.

I have 3 servers configured. SRV1 is priority 0, SRV2 is priority 1, SRV3 is priority 2.

All 3 are enabled.

What I did
I started by examining my current active connections in 'Status and interface options' -> [Connections] tab.

[Show active connections] is ticked. There are 3 server connection list sections shown (SRV1, SRV2, SRV3).

For the current download, only connections are being made to SRV1.

I navigated into 'SABnzbd Config' -> [Servers] then unticked the [Enabled] box for SRV1, then returned to the download queue screen.

Problem
I then clicked on 'Status and interface options' -> [Connections] tab.

There are still 3 server connection list sections shown (SRV1, SRV2, SRV3). And the connections that are now being made to SRV2 appear in the connection list box for SRV1.

Workaround
To correct this, I launched a new browser tab (and closed the old one), loaded my SAB interface again, then examined 'Status and interface options' -> [Connections] tab again. Now, there are the expected 2 server connection list sections (for SRV2 and SRV3), and the current connections are correctly shown in the list box for SRV2.

Display bug?

Re: active connections shown for wrong server

Posted: September 27th, 2017, 5:00 am
by safihre
Did you do the " 'SABnzbd Config' -> [Servers] " in a separate tabs or same window? It also takes a few seconds before the servers are reset (have to shutdown Downloader first), so could be during that time.
Only on a full page refresh indeed refreshes the connections, to preserve CPU when updating the connections.

Re: active connections shown for wrong server

Posted: September 27th, 2017, 1:04 pm
by OneCD
safihre wrote: September 27th, 2017, 5:00 amDid you do the " 'SABnzbd Config' -> [Servers] " in a separate tabs or same window?
All in the same window.
safihre wrote: September 27th, 2017, 5:00 amIt also takes a few seconds before the servers are reset (have to shutdown Downloader first), so could be during that time.
I left it for a couple of minutes to see if it would update the layout, but it didn't. However, the connections were clearly live.
safihre wrote: September 27th, 2017, 5:00 amOnly on a full page refresh indeed refreshes the connections, to preserve CPU when updating the connections.
Would it be possible to refresh when returning to the download queue from the configuration pages?

Re: active connections shown for wrong server

Posted: September 28th, 2017, 2:01 pm
by OneCD
I can confirm that your commit https://github.com/sabnzbd/sabnzbd/comm ... 99a0b5a218 fixes this.

Thanks safihre. :)