Actually when a response is ended not many things happen. You can test this 
by hooking the emit function:

var _emit = res.emit;
        res.emit = function() {
            console.log('RESPONSE EMIT : %s', arguments[0]);
            _emit.apply(this, arguments);
        };

Using node 0.8.14 this only results in:
4: 6-11 15:6:18: RESPONSE EMIT : header
4: 6-11 15:6:18: RESPONSE EMIT : finish

So, the `finish` event indicates somekind of end. However, it is not 
official and undocumented.

Response inherits from WritableStream. Therefore it should emit the end and 
close events.

Why is this not happening?

-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Reply via email to