Please describe what you are doing to trigger the bug:
I was using Duplicacy to back up a Synology NAS, through the web UI. I opened a lot of log tail requests.
Please describe what you expect to happen (but doesn’t):
The web UI should respond.
Please describe what actually happens (the wrong behaviour):
Requests to the web UI hang forever (e.g. /, /backup, /storage); except for homepage requests when logged out, which return immediately HTTP 200.
I have investigated this issue a bit, attached a debugger, and found the requests are blocked trying to acquire the mutex main.ConfigLock. Goroutines keep backing up with each new request. I’m not sure which thread holds the ConfigLock though. I documented my investigation in a twitter thread: https://twitter.com/MarkHnsn/status/1621383867088404481.
I think that when the browser closes the “log tail” tab, closing its connection, the log-tail goroutine should exit too. It looks like they’re leaking.
Version: 1.6.3.