compression

This commit is contained in:
sennevb 2017-10-22 19:21:41 +02:00 committed by GitHub
parent ff0e1f6f32
commit 289600de24
1 changed files with 2 additions and 0 deletions

View File

@ -110,7 +110,9 @@ module.exports = function(logger, portalConfig, poolConfigs){
});
res.write('\n');
var uid = Math.random().toString();
req.on("close", function() {
_this.liveStatConnections[uid] = res;
res.flush();
req.on("close", function() {
delete _this.liveStatConnections[uid];
});