Closed christroutner closed 2 years ago
Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review. In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment. Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:
Finally, remember to use https://discuss.ipfs.io if you just need general support.
I just confirmed with the command line app for go-ipfs that the behavior is the same. Running ipfs pubsub ls
shows 6 entries. They rotate, but it only ever shows 6.
@christroutner this issue seems to be https://github.com/ipfs/js-ipfs/issues/3983 and related to browser HTTP limitations.
If we can help the browser out reasonably from go-ipfs then we can have an issue for dealing with that (cc @lidel)
Thanks for the tip, @aschmahmann! This section on configuring an agent seems to be the fix that I need.
What I find odd, is that I observed the same behavior when using the go-ipfs CLI.
I'll close the Issue now, but I'll add to it if I discover new information as I try to incorporate http agents in my node.js apps.
Checklist
Installation method
ipfs-update or dist.ipfs.io
Version
Config
Description
I am building an app that generates many pubsub connections. I'm using ipfs-http-client to control a go-ipfs v0.11.0 node. When I run
ipfs.pubsub.ls()
only returns 5 results. Every time. I'm sure there should be more than 5 connections, but it's only ever 5.As new connections are made, older connections roll out. I'm not sure if this means the pubsub connection is severed (which is what I'm afraid of), or if I'm only seeing a window of the full list. But here is an example of this rolling array:
Note that from one log entry to another, the elements in the
pubsubs
array seems to shift. This is the output ofipfs.pubsub.ls()
.