Closed clehner closed 8 years ago
Nice writeup. Interesting situation. I have to punt to @dominictarr, maybe it's a bug in pull.take()?
I found the problem in pull-paramap. I will make a test case and PR there.
Nice dude
@clehner's fix is merged into pull-paramap@1.1.6 (a patch) npm update to get the fix.
I converted git-ssb-web to run as a scuttlebot plugin, and found that certain pages would not fully load. The page for the global feed (which calls sbot.createFeedStream) and for user feeds (sbot.createUserStream) appear to load their items but then they hang. I did some experimenting with the render pipeline and found that having
pull.take()
prevents the sink from reading theend || error
stream event. I made a test plugin here which demonstrates the issue with some ssb stream operations:~/.ssb-test/node_modules/test/index.js
:So we see that for the methods createLogStream, createFeedStream, and createUserStream, when the stream output is limited using the
limit
option, we get the end event, but whenpull.take()
is in the pipeline, the end event does not get read.When connecting via
ssb-client
instead of as a plugin, the end event is read correctly.~/.ssb-test/node_modules/test/server.js
:@dominictarr @pfraze any ideas of what might be causing this?