node: Add connection limits
The limits are roughly modeled after the Bitcoin network.
3 files changed
+48
-1
5bdc2ad1
→
786ce40f
modified radicle-cli/examples/rad-config.md
@@ -43,6 +43,10 @@ $ rad config
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified radicle-node/src/service.rs
@@ -1059,10 +1059,15 @@ where
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -1912,6 +1917,10 @@ where
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -2345,6 +2354,16 @@ impl Sessions {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified radicle/src/node/config.rs
@@ -93,6 +93,9 @@ pub struct Limits {
|
|
|
|
|
|
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -104,6 +107,27 @@ impl Default for Limits {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|