Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fixes. Leaks all client ended read streams.
readable streams passed from server to client like level-live-stream that never end on the server cannot be ended from multilevel client. the server never gets the end event though they are supported by mdm and the client ends them.
the fix is when a tmp-stream is "replaced" with the mdm stream bind end on the tmp stream to trigger end on the mdm stream. for write stream support also close should be bubbled.
this example results in the whole database being streamed to the client. you can see it if you bind "data" on the mdm stream to console log or just look at your server's network traffic graph.
the expected behavior is that the server side of the stream gets the end event that mdm passes and stops streaming the whole database.