MCPcopy
hub / github.com/scality/cloudserver / checkBrokenConnections

Method checkBrokenConnections

managementAgent.js:163–175  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

161 }
162
163 checkBrokenConnections() {
164 this.wss.clients.forEach(client => {
165 if (!client.isAlive) {
166 logger.info('close broken connection', {
167 client: client._socket._peername,
168 });
169 client.terminate();
170 return;
171 }
172 client.isAlive = false;
173 client.ping();
174 });
175 }
176}
177
178const server = new ManagementAgentServer();

Callers

nothing calls this directly

Calls 1

infoMethod · 0.80

Tested by

no test coverage detected