nodejs http response.write: is it possible out-of-memory?
问题 If i have following code to send data repeatedly to client every 10ms: setInterval(function() { res.write(somedata); }, 10ms); What would happen if the client is very slow to receive the data? Will server get out-of-memory error? Edit: actually the connection is kept alive, sever send jpeg data endlessly (HTTP multipart/x-mixed-replace header + body + header + body.....) Because node.js response.write is asynchronous, so some users guess it may store data in internal buffer and wait until low