Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    DWC 3.4 appears to DDos itself

    Scheduled Pinned Locked Moved
    Duet Web Control
    2
    3
    197
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • vrghostundefined
      vrghost
      last edited by

      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.

      Capture_1.PNG

      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.

      chrishammundefined 2 Replies Last reply Reply Quote 0
      • chrishammundefined
        chrishamm administrators @vrghost
        last edited by

        @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.

        Duet software engineer

        1 Reply Last reply Reply Quote 0
        • chrishammundefined
          chrishamm administrators @vrghost
          last edited by

          @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?

          Duet software engineer

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Unless otherwise noted, all forum content is licensed under CC-BY-SA