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 0ee2cae6a9d8739902adcd191f90fd41b972a9b2 Author: Benoit Tellier <[email protected]> AuthorDate: Thu Mar 24 10:19:30 2022 +0700 JAMES-3738 Send initial STARTTLS reply before pipeline changes --- .../java/org/apache/james/protocols/netty/NettyProtocolTransport.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocols/netty/src/main/java/org/apache/james/protocols/netty/NettyProtocolTransport.java b/protocols/netty/src/main/java/org/apache/james/protocols/netty/NettyProtocolTransport.java index 05a8aa6821..994708f5c1 100644 --- a/protocols/netty/src/main/java/org/apache/james/protocols/netty/NettyProtocolTransport.java +++ b/protocols/netty/src/main/java/org/apache/james/protocols/netty/NettyProtocolTransport.java @@ -87,11 +87,11 @@ public class NettyProtocolTransport extends AbstractProtocolTransport { @Override protected void writeToClient(byte[] bytes, ProtocolSession session, boolean startTLS) { + channel.writeAndFlush(Unpooled.wrappedBuffer(bytes)); + if (startTLS) { prepareStartTLS(); } - - channel.writeAndFlush(Unpooled.wrappedBuffer(bytes)); } @Override --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
