Skip to content

Commit

Permalink
g3proxy: fix icap connection save action
Browse files Browse the repository at this point in the history
  • Loading branch information
zh-jq committed Dec 17, 2024
1 parent b272514 commit 83b8a24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion g3proxy/src/inspect/imap/forward.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ where
let mut body_reader = body.body_reader();
let mut sinker = tokio::io::sink();
let _ = tokio::io::copy(&mut body_reader, &mut sinker).await;
if body_reader.finished() {
if body_reader.trailer(128).await.is_ok() {
body.save_connection().await;
}
}
Expand Down
2 changes: 1 addition & 1 deletion g3proxy/src/inspect/smtp/transaction/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ impl<'a, SC: ServerConfig> Transaction<'a, SC> {
let mut body_reader = body.body_reader();
let mut sinker = tokio::io::sink();
let _ = tokio::io::copy(&mut body_reader, &mut sinker).await;
if body_reader.finished() {
if body_reader.trailer(128).await.is_ok() {
body.save_connection().await;
}
}
Expand Down

0 comments on commit 83b8a24

Please sign in to comment.