buffer for compression

allow sending chunks of data prior to end
This commit is contained in:
Larry Ludlow 2017-09-10 08:53:39 -04:00 committed by GitHub
parent a8cd7ba9e0
commit 677b367004
1 changed files with 1 additions and 0 deletions

View File

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