我正在使用网络模块,打开连接并下载(流式传输)数据。代码很简单:
connection = net.Socket();
connection.setNoDelay(true);
connection.connect(url.port || 80, url.hostname);
connection.on("connect", function() {
console.log(process.pid.toString().bold.red + ' connected'.green);
connection.write(generateRequest(url));
});
内存(缓冲区)正在增长。有没有办法释放它?