gomobile-ipfs icon indicating copy to clipboard operation
gomobile-ipfs copied to clipboard

[gomobile-lib] better control over the max number of connected peers

Open aeddi opened this issue 5 years ago • 2 comments

For the moment, the limits that we set in the config concerning the number of peers (high/low watermarks, grace period) does not seem to regulate correctly the maximum number of connected peers (probably due to a misuse / misunderstanding on our part).

We need to find a way to precisely control the maximum number of peers a device is connected to because:

  • On iOS and Android, the number of connected peers is strongly related to the resource consumption
  • On iOS a problem occurs very quickly: the OS throws "too many open files" errors when it reaches about 200 connected peers (this limit is not configurable on iOS)

I will do precise tests with different high/low watermarks and grace period settings and post reports on this issue so that we have a better view of the problem before thinking about solutions.

aeddi avatar Jan 21 '20 17:01 aeddi