Hello!
Mac (MBP 2020, MacOS 11.5, 11.6) randomly disconnect a network drive mapped to the DFS root. Disconnection occurs regardless of the connection via LAN or WiFi.
A script was written that checks for the presence of a disk and, if it is absent, connects it back. But after that, in some cases, folders in the DFS root are visible, but they are empty. After 30 minutes or more, the contents of the folders may appear.
With a manual connection, the same thing happens. Can connect normally, can connect with empty folders.
What could be the reason for spontaneous disconnection from the server and how to avoid it? And why does it take so long to read the contents of network folders?