mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-02-03 22:18:39 +00:00
On low resources Windows Server VM, profiling shows the bottle neck when interacting with Windows DNS server to add/remove forwarders using by calling external powershell commands. This happens because ctrld try setting DNS before it runs. However, it would be better if ctrld only sets DNS after all its listeners ready. So it won't block ctrld from receiving requests. With this change, self-check process on dual Core Windows server VM now runs constantly fast, ~2-4 seconds when running multiple times in a row.