msgpack / msgpack-node

MessagePack implementation for Node.js
Other
311 stars 72 forks source link

msgpack stream write 'drain'? #43

Open llint opened 6 years ago

llint commented 6 years ago

In the Stream wrapper of msgpack.js, it seems that the send function doesn't handle the underlying stream's writable.'drain' event, even though in most cases, stream.write would succeed, but for high volume data pumping scenarios, when stream.write returns false, the writable.'drain' event should be used to resume writing