Fixes npm/concurrent-couch-follower#2
This is a Proof Of Concept. While it seems to fix the issue according to my tests, I'm not very proud of the quality of the code. I'm sure there is a better way to handle the issue, but I'm no expert on node streams.
thanks! ill take a look
lets figure out a way to write a test for this. but it looks good =)
Here is a test.
N.B.: in an ideal world, your tests should not depend on skimdb.npmjs.com
Does this needs to be merged @soldair?
I need to test it more myself let me know if you try it out @vvo
We have not run into this issue ourselves yet but i should get to looking at it in January