open-services / bolivar

Federated Open-Registry proxy for p2p sharing of packages
13 stars 1 forks source link

ipfs still kills routers #4

Open victorb opened 5 years ago

victorb commented 5 years ago

Currently, having troubles developing with bolivar as after 30 seconds (just 10 peers), the router provided by my ISP is forcing a restart.

Thought we would be able to avoid this problem by using ipfslite with low values for the connection manager, but seems that's not enough.

There is a long-standing issue to have this fixed in go-ipfs: https://github.com/ipfs/go-ipfs/issues/3320

victorb commented 5 years ago

Thinking if we should change Bolivar to work over a private network instead, where Open-Registry and other Bolivar peers would be the only ones, might help with this issue. But it's a temporary solution.

victorb commented 5 years ago

https://github.com/open-services/bolivar/blob/master/p2p/p2p.go#L121 needs to use NewDHTClient instead of New to use DHT Client mode (I think) to see if it helps to not kill routers.

From https://github.com/ipfs/go-ipfs/issues/3320

Introduces the issue (again, I think) that we won't respond to DHT requests for other Bolivar peers. That's no fun.