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

    DWC loses connection when switching tabs

    Scheduled Pinned Locked Moved Unsolved
    Duet Web Control
    4
    10
    584
    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.
    • Christoph13524undefined
      Christoph13524
      last edited by Christoph13524

      Hi!

      For some weeks DWC always loses connection when I am switching to another tab in my browser. If I only switch for about 10 seconds the connection will remain but if it's longer, DWC asks me to enter the password again. On top of that, if I type in the password, DWC won't reconnect - it is loading and loading..
      I have to reload the DWC page and then it works again - until I switch to another tab..

      I think I had this issue somewhere around the 2.0 DWC release - I am not really sure.

      I use the latest software:
      DWC 2.0.4
      Duet2Firmware 2.04
      WiFiServer 1.23
      Safari Browser and latest MacOS

      Printing with an UMO+
      Duet 2 WiFi 1.04

      1 Reply Last reply Reply Quote 0
      • Christoph13524undefined
        Christoph13524
        last edited by

        looks like this is not the case with chrome

        Printing with an UMO+
        Duet 2 WiFi 1.04

        1 Reply Last reply Reply Quote 0
        • Danalundefined
          Danal
          last edited by Danal

          Safari puts background tabs to sleep. To keep them awake, change the setting: Disable Hidden Page Timer Throttling, located under Debug → Miscellaneous Flags

          If you haven’t enabled the Safari Debug menu yet, triple-click the following line and paste it into a Terminal session:

          defaults write com.apple.Safari IncludeInternalDebugMenu 1

          Delta / Kossel printer fanatic

          Christoph13524undefined 1 Reply Last reply Reply Quote 1
          • Christoph13524undefined
            Christoph13524 @Danal
            last edited by

            @Danal
            I thought there might be a problem with sleeping background tabs.

            I copied the line into Terminal but a debug-menu didn't appear.
            Tried it several times and restarted Safari but there is nothing.

            To be sure, the debug-thing should appear in Safaris menu bar?

            The Develop menu is already in the menu bar.

            Printing with an UMO+
            Duet 2 WiFi 1.04

            1 Reply Last reply Reply Quote 0
            • Danalundefined
              Danal
              last edited by

              Correct, the debug should appear. The command-line to enable it may have changed across releases, see if you can google it.

              Delta / Kossel printer fanatic

              Christoph13524undefined 1 Reply Last reply Reply Quote 0
              • Christoph13524undefined
                Christoph13524 @Danal
                last edited by Christoph13524

                @Danal
                Got it!
                In macOS Mojave this doesn't work anymore like it should. You have to check something in the system preferences so Terminal has full access to the disk volume. This is new in macOs Mojave.

                The command is still the same.

                Thanks!

                Printing with an UMO+
                Duet 2 WiFi 1.04

                1 Reply Last reply Reply Quote 0
                • Christoph13524undefined
                  Christoph13524
                  last edited by

                  Now I checked "Disable hidden page timer throttling" but the problem is still there!
                  DWC asks me for the password again after I switch to other tabs and won't let me in until I reload the page.
                  Nothing has changed.

                  Printing with an UMO+
                  Duet 2 WiFi 1.04

                  1 Reply Last reply Reply Quote 0
                  • Danalundefined
                    Danal
                    last edited by

                    Hmmm... I will give this a try on Safari. Later this evening (US time)

                    Delta / Kossel printer fanatic

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

                      I've got a test setup with the latest OS X and Safari versions here. So far I can say that Safari suspends the connection at some point and I've got to re-enter the password (which shouldn't be the case so I'll fix that) but once I do that, DWC2 reconnects as expected.

                      Edit: It looks like Safari never generates timeout errors but tries to resend pending HTTP request when a tab is resumed. That conflicts with the current error handler so I'll develop a work-around.

                      Duet software engineer

                      1 Reply Last reply Reply Quote 1
                      • Topherundefined
                        Topher
                        last edited by

                        Was there any further development on this? I've been having this issue for a long while and don't even want to think about the total time I've spend refreshing 24 browsers and entering credentials a few times a day 😂

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