Hey Ryan,
thanks a lot for looking into this so quickly. Unfortunately I'm
having issues with it:
var self = this;
this.req.addListener('body', function(chunk) {
self.req.pause();
self.handleChunk(chunk);
node.debug(chunk.length+' bytes chunk');
setTimeout(function() {
node.debug('resume body');
self.req.resume();
});
});
The idea is that v8 gets to the timeout callback as soon as there are
free cycles again. Unfortunately all I get is a long list of:
DEBUG: 8192 bytes chunk
DEBUG: 8192 bytes chunk
DEBUG: 8192 bytes chunk
DEBUG: 8192 bytes chunk
followed by all the resume calls:
DEBUG: resume body
DEBUG: resume body
DEBUG: resume body
DEBUG: resume body
DEBUG: resume body
DEBUG: resume body
DEBUG: resume body
So it seems like request.pause() is not kicking in at all.
Let me know if you need me to isolate this further.
Best Regards,
-- Felix Geisendörfer