You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@james.apache.org by bt...@apache.org on 2024/02/28 17:32:02 UTC
(james-project) 01/07: JAMES-4007 Flush data before close
This is an automated email from the ASF dual-hosted git repository.
btellier pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/james-project.git
commit 6b1ad6d413bb59eac3fc2ea4037f93de678a0972
Author: Benoit TELLIER <bt...@linagora.com>
AuthorDate: Mon Feb 26 16:41:50 2024 +0100
JAMES-4007 Flush data before close
---
.../java/org/apache/james/imapserver/netty/ImapRequestFrameDecoder.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/server/protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/ImapRequestFrameDecoder.java b/server/protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/ImapRequestFrameDecoder.java
index 0888311e36..f4f0717a59 100644
--- a/server/protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/ImapRequestFrameDecoder.java
+++ b/server/protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/ImapRequestFrameDecoder.java
@@ -311,6 +311,7 @@ public class ImapRequestFrameDecoder extends ByteToMessageDecoder implements Net
private void finalizeDataTransfer() {
try {
+ outputStream.flush();
outputStream.close();
} catch (IOException ignored) {
//ignore exception during close
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@james.apache.org
For additional commands, e-mail: notifications-help@james.apache.org