发布

  • fix(core): check only for watcher connections during inactivity shutdown (#29621)

    frostbyte_neo 发布于 2025-01-15 16:07:29 +00:00

    Current Behavior

    We currently second guess our inactivity timer by checking if there are
    any open connections. However, there's also a strong chance that plugin
    workers will remain open as long as the daemon is open. This means the
    daemon stays alive forever and the daemon never shuts down even though
    it is inactive.

    Expected Behavior

    Instead of checking for open connections in general, the daemon server
    will only check for open file watchers. Most Daemon client requests will
    restart the server when sending messages so we can safely shut the
    server down in most cases. The only case where shutting down the daemon
    would cause a disruption is if a file watcher is registered. In those
    cases, the daemon will not shutdown due to inactivity.

    Related Issue(s)

    Fixes #

    (cherry picked from commit 32a2ca8eaa)

    下载附件