status-im / status-web

Packages for building web applications in the Status ecosystem.
https://status-components.vercel.app
Mozilla Public License 2.0
82 stars 35 forks source link

Failed websocket connections are retried instantly #320

Open Menduist opened 1 year ago

Menduist commented 1 year ago

Which will probably lead to some nice DDoSes To test it out, you can for instance specify a wrong PeerId (the thing after /p2p) in packages/status-js/src/consts/peers.ts It will lead to this: image

(not sure if it's actually coming from status-web or js-waku) Some exponential backoff would nice to avoid frying the servers if a significant amount of nodes start to do this :smiley:

felicio commented 1 year ago

Notes

fryorcraken commented 1 year ago

Thanks, will keep in mind when investigating https://github.com/waku-org/js-waku/issues/751 which may be fix thanks to an auto-dial from libp2p.