node: Fixes to wire protocol logic
- Make sure we cleanup pending peer states when disconnecting before handshake.
- Make sure we don’t panic if a peer disconnects before being fully connected.
1 file changed
+24
-15
49584f4e
→
aa9c6542
modified radicle-node/src/wire/protocol.rs
@@ -331,16 +331,18 @@ where
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -413,6 +415,16 @@ where
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -488,7 +500,7 @@ where
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -661,8 +673,9 @@ where
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -670,7 +683,7 @@ where
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -686,16 +699,14 @@ where
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -721,9 +732,7 @@ where
|
|
|
|
|
|
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|