status-im / status-web

Apache License 2.0
78 stars 34 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.