Replies: 2 comments
-
No, iroh doesn't do per-IP rate limiting by default. |
Beta Was this translation helpful? Give feedback.
-
Since you are asking about every incoming stream: QUIC by defaults has a limit for the maximum concurrent streams allowed in a connection. This can be set when the connection is created using By default we currently have this set to a 100 bi-directional streams and 100 uni-directional streams, the upstream Quinn default. For connections @matheus23's answer is comprehensive. We need to spend some time on giving folks better tools there. Of course per-IP rate-limiting is tricky in p2p context since on large NAT-networks it is easy to DOS legitimate traffic that way. |
Beta Was this translation helpful? Give feedback.
-
E.g. if I spawn a task to handle every incoming stream, do I need to add some limits to not allow malicious resource exhaustion? What about connections? Does Iroh by default handle any per-IP rate limiting etc.?
Beta Was this translation helpful? Give feedback.
All reactions