diff --git a/pr/3161/docs/iroh_relay/protos/relay/index.html b/pr/3161/docs/iroh_relay/protos/relay/index.html index ca19cd532e..6a1bc0f520 100644 --- a/pr/3161/docs/iroh_relay/protos/relay/index.html +++ b/pr/3161/docs/iroh_relay/protos/relay/index.html @@ -1,4 +1,4 @@ -iroh_relay::protos::relay - Rust
iroh_relay::protos

Module relay

Source
Expand description

This module implements the relaying protocol used by the server and client.

+iroh_relay::protos::relay - Rust
iroh_relay::protos

Module relay

Source
Expand description

This module implements the relaying protocol used by the server and client.

Protocol flow:

Login:

    diff --git a/pr/3161/docs/src/iroh_relay/protos/relay.rs.html b/pr/3161/docs/src/iroh_relay/protos/relay.rs.html index 8ecf7e9eca..29c2c6eb8e 100644 --- a/pr/3161/docs/src/iroh_relay/protos/relay.rs.html +++ b/pr/3161/docs/src/iroh_relay/protos/relay.rs.html @@ -923,7 +923,12 @@ 922 923 924 -925
//! This module implements the relaying protocol used by the `server` and `client`.
+925
+926
+927
+928
+929
+930
//! This module implements the relaying protocol used by the `server` and `client`.
 //!
 //! Protocol flow:
 //!
@@ -1404,7 +1409,12 @@
                 let content = content.slice(PublicKey::LENGTH..);
                 Self::RecvPacket { src_key, content }
             }
-            FrameType::KeepAlive => Self::KeepAlive,
+            FrameType::KeepAlive => {
+                if !content.is_empty() {
+                    return Err(InvalidFrameSnafu.build());
+                }
+                Self::KeepAlive
+            }
             FrameType::NotePreferred => {
                 if content.len() != 1 {
                     return Err(InvalidFrameSnafu.build());
@@ -1844,7 +1854,7 @@
             codec.encode(frame.clone(), &mut buf).unwrap();
             inject_error(&mut buf);
             let decoded = codec.decode(&mut buf);
-            prop_assert!(decoded.is_err());
+            prop_assert!(decoded.is_err(), "{:?}", decoded);
         }
     }
 }