aboutsummaryrefslogtreecommitdiff
path: root/src/conn.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2020-12-07 16:00:12 +0100
committerAlex Auvolat <alex@adnab.me>2020-12-07 16:00:12 +0100
commit32a0fbcbd919ec45bb6380352190115f701f2c91 (patch)
treefa27de4b69598767e25f884ae8b27b7709db2a5e /src/conn.rs
parent5a9ae8615ee616b11460a046deaa6981b10d69ab (diff)
downloadnetapp-32a0fbcbd919ec45bb6380352190115f701f2c91.tar.gz
netapp-32a0fbcbd919ec45bb6380352190115f701f2c91.zip
Maybe fix something? Idk
Diffstat (limited to 'src/conn.rs')
-rw-r--r--src/conn.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/conn.rs b/src/conn.rs
index 89bf654..7ba15f9 100644
--- a/src/conn.rs
+++ b/src/conn.rs
@@ -112,6 +112,8 @@ impl SendLoop for ServerConn {}
#[async_trait]
impl RecvLoop for ServerConn {
async fn recv_handler(self: Arc<Self>, id: u16, bytes: Vec<u8>) {
+ debug!("ServerConn recv_handler {} ({} bytes)", id, bytes.len());
+
let bytes: Bytes = bytes.into();
let prio = bytes[0];
@@ -265,6 +267,8 @@ impl SendLoop for ClientConn {}
#[async_trait]
impl RecvLoop for ClientConn {
async fn recv_handler(self: Arc<Self>, id: RequestID, msg: Vec<u8>) {
+ debug!("ClientConn recv_handler {} ({} bytes)", id, msg.len());
+
let mut inflight = self.inflight.lock().unwrap();
if let Some(ch) = inflight.remove(&id) {
if ch.send(msg).is_err() {