Skip to content

Commit 0d82405

Browse files
committed
refactor(http1): emit trace logs when buffering write data
1 parent eb0c646 commit 0d82405

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/proto/h1/io.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,11 @@ where
512512
let head = self.headers_mut();
513513

514514
head.maybe_unshift(buf.remaining());
515+
trace!(
516+
self.len = head.remaining(),
517+
buf.len = buf.remaining(),
518+
"buffer.flatten"
519+
);
515520
//perf: This is a little faster than <Vec as BufMut>>::put,
516521
//but accomplishes the same result.
517522
loop {
@@ -527,6 +532,11 @@ where
527532
}
528533
}
529534
WriteStrategy::Queue => {
535+
trace!(
536+
self.len = self.remaining(),
537+
buf.len = buf.remaining(),
538+
"buffer.queue"
539+
);
530540
self.queue.push(buf.into());
531541
}
532542
}

0 commit comments

Comments
 (0)