joyent/node — pull request #6798 by ayanamist (2014-01-03 12:18:23+00:00)
Title: Fix #6506 stream: writes can return false but forget to emit drain

Just fix #6506, now it will emit 'drain' event properly.
Test case has been added.