mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 23:04:52 +09:00
When closing down the HTTP and HTTPS servers existing connections are not closed by Node.js, and may live on forever if they are actively in use. A common case where this happens is if Prometheus is set up with a short interval for collections. To close down the active connections they need to be tracked and closed when the server is closed, add the HttpCloser class which encapsulates the tracking and closure process behind a simple interface and use this to close down the HTTP and HTTPS server on the master.