You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have tried with below code and file descriptor remains opens.
var os = require('os');
var fs = require('fs');
var path = require('path');
var needle = require('needle');
var url = 'https://sample-videos.com/video123/mp4/360/big_buck_bunny_360p_30mb.mp4';
var output_path = path.join(__dirname, path.basename(url) + Math.random().toString());
var writeStream = fs.createWriteStream(output_path);
var readStream = needle.get(url);
readStream.pipe(writeStream);
setTimeout(function () {
writeStream.close();
}, 2000);
//to keep the server alive for few mins
setTimeout(function () {
}, 99999999);
We are using needle version 2.4.0, node version v10.15.3 and OS version Ubuntu 16.04.6 LTS
I have checked with lsof -i -n -l -P -s -T qs | grep node command and its remain open.
I think it is very serious memory leak issue if we are using needle in large scale.
The text was updated successfully, but these errors were encountered:
Hi @tomas ,
We have tried with below code and file descriptor remains opens.
We are using needle version
2.4.0
, node versionv10.15.3
and OS versionUbuntu 16.04.6 LTS
I have checked with
lsof -i -n -l -P -s -T qs | grep node
command and its remain open.I think it is very serious memory leak issue if we are using needle in large scale.
The text was updated successfully, but these errors were encountered: