stream_wrap: support empty `TryWrite`s
authorFedor Indutny <fedor@indutny.com>
Sat, 3 Oct 2015 20:15:15 +0000 (16:15 -0400)
committerRod Vagg <rod@vagg.org>
Mon, 5 Oct 2015 11:33:41 +0000 (22:33 +1100)
commit1cc7b41ba4a5e2a05cddab12aa4e2d0f94ca0065
tree86e3e644707bbddcb08909b7b5367877c8a1cc56
parentfb7a491d1c781c20e88b48214cda12a1048ee812
stream_wrap: support empty `TryWrite`s

Decrement `vcount` in `DoTryWrite` even if some of the buffers are
empty.

PR-URL: https://github.com/nodejs/node/pull/3128
src/stream_wrap.cc