hi,
I have a problem on my code, that some variables never deleted/released. I tested it using heapdump. for example:
var app = express();
app.post("/myURL", function(req, res){
var reqBody = new Buffer(0);
req.on('data', function (data) {
data = new Buffer(data);
reqBody = Buffer.concat([reqBody,data]);
});
req.on('end', function () {
// use the reqBody and
// in some callbacks do the following line
res.send("OK");
});
)};
here I found that variable reqBody never released (with some variables in on end method) and the memory is grown for large data.