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

Periodical API timeout

Open lidel opened this issue 5 years ago • 0 comments

Something to investigate:

Firefox 80 and go-ipfs 0.7.0-rc1 with ~600 displays "automatic mode on/off" popup a few times an hour.

This is caused by timeout on swarm peers call we make to display peer count:

2020-09-06--19-11-26

Unsure about details (maybe my node runs on a slow machine? go-ipfs blocking?), needs more analysis.

Potential fixes:

  • add retry logic
  • increase timeout
  • update peer count only when needed (when peer count is no longer displayed on the page – see https://github.com/ipfs-shipyard/ipfs-companion/issues/662)

lidel avatar Sep 06 '20 17:09 lidel