joyent/node — pull request #5739 by isaacs (2013-06-24 20:58:00+00:00)
Title: http: Don't emit finish until fully flushed

Closes #5712

When ending, if there is a pending write, don't emit finish until the
subsequent close or drain event, so that we know it's fully flushed.