@resolveio/server-lib 5.0.16 → 5.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/managers/subscription.manager.js +1 -1
- package/package.json +1 -1
- package/server-app.js +14 -13
|
@@ -68,7 +68,7 @@ var SubscriptionManager = /** @class */ (function () {
|
|
|
68
68
|
this._sendQueue = [];
|
|
69
69
|
this._runningQueue = false;
|
|
70
70
|
this._mainServer = mainServer;
|
|
71
|
-
this._nodeCache = new NodeCache({ stdTTL: 0, checkperiod:
|
|
71
|
+
this._nodeCache = new NodeCache({ stdTTL: 0, checkperiod: 0 });
|
|
72
72
|
this.serverConfig = serverConfig;
|
|
73
73
|
this._wss = wss;
|
|
74
74
|
// Publications
|
package/package.json
CHANGED
package/server-app.js
CHANGED
|
@@ -334,19 +334,20 @@ var ResolveIOMainServer = /** @class */ (function () {
|
|
|
334
334
|
ws.terminate();
|
|
335
335
|
});
|
|
336
336
|
});
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
}
|
|
337
|
+
// Seems to cause issues
|
|
338
|
+
// process.stdout.on('error', (err) => {
|
|
339
|
+
// if (err.code === "EPIPE") {
|
|
340
|
+
// console.log('EPIPE error found => ignoring');
|
|
341
|
+
// this._wss.clients.forEach((ws: WebSocket) => {
|
|
342
|
+
// if (ws['isAlive'] === false) {
|
|
343
|
+
// if (ws['retryCnt'] >= 60) {
|
|
344
|
+
// this.unsubscribeWS(ws);
|
|
345
|
+
// ws.terminate();
|
|
346
|
+
// }
|
|
347
|
+
// }
|
|
348
|
+
// });
|
|
349
|
+
// }
|
|
350
|
+
// });
|
|
350
351
|
// Keep alive timer to ping/pong
|
|
351
352
|
setInterval(function () {
|
|
352
353
|
_this._wss.clients.forEach(function (ws) {
|