DWC 3.4 appears to DDos itself
-
Hello,
It appears that the DWC 3.4 (and possibly earlier versions too) is DDoS-ing itself by calling the http://192.168.242.45/rr_model?flags=d99fn ajax request way more often than the DWC back-end can handle it.
The ajax call appears to happen every ~200ms and it mostly succeeds, but occasionally the back-end returns HTTP 500 error and then the "reconnecting" modal message pops up.
I am running
FIRMWARE_NAME: RepRapFirmware for Duet 2 WiFi/Ethernet FIRMWARE_VERSION: 3.4.0 ELECTRONICS: Duet WiFi 1.02 or later + DueX5 FIRMWARE_DATE: 2022-03-15 18:58:33
But I believe that I have seen the "reconnecting" message popping up before upgrading to the 3.4.0.
-
@vrghost The high frequency of these requests is normal; if you find DWC updates too quickly, you can reduce the status update interval on the Machine Settings page, though.
I'll attempt to reproduce that HTTP error 503, in theory it should take up to 3 retries before DWC goes into the "reconnecting" state.
-
@vrghost I don't see this behaviour on my test setup, when HTTP code 503 is returned DWC stays active and only attempts to reconnect after 2 failed retries. What browser are you using?