A.1 - Stop the child Node.js process running the OpenMCT static server.
A.2 - Stop the Telemetry HTTP server telemServer from accepting new connections.
A.3 - Stop the Control Console HTTP server consoleServer from accepting new connections.
(We added already A.3 as it obviously will be in the first subset)
A.1 Stop the child Node.js process running the OpenMCT static server
A.2 & A.3 Stop the HTTP servers from accepting new connections
In the same Promise/Resolve cycle, close the servers.
Use the http.Server.close(callback) method to stop the HTTP server from accepting new connections.
https://nodejs.org/api/net.html#serverclosecallback
Stops the server from accepting new connections and keeps existing connections. This function is asynchronous, the server is finally closed when all connections are ended and the server emits a 'close' event. The optional callback will be called once the 'close' event occurs. Unlike that event, it will be called with an Error as its only argument if the server was not open when it was closed.
First subset A1, A2, A3
A.1 - Stop the child Node.js process running the OpenMCT static server. A.2 - Stop the Telemetry HTTP server
telemServer
from accepting new connections. A.3 - Stop the Control Console HTTP serverconsoleServer
from accepting new connections.(We added already A.3 as it obviously will be in the first subset)
A.1 Stop the child Node.js process running the OpenMCT static server
=> #41 & #50 - dabe06f6a79b0f35a546eb5b736cdbef8709413b
A.2 & A.3 Stop the HTTP servers from accepting new connections
In the same Promise/Resolve cycle, close the servers.
http.Server.close(callback)
method to stop the HTTP server from accepting new connections. https://nodejs.org/api/net.html#serverclosecallback Stops the server from accepting new connections and keeps existing connections. This function is asynchronous, the server is finally closed when all connections are ended and the server emits a 'close' event. The optional callback will be called once the 'close' event occurs. Unlike that event, it will be called with an Error as its only argument if the server was not open when it was closed.=> #50 - 377640757cc3843a1277491fc7e116e3e475776a
Originally posted by @nunoguedelha in https://github.com/ami-iit/yarp-openmct/issues/40#issuecomment-948085721