JAMES-3715 Fix SMTP pipelining
authorBenoit Tellier <btellier@linagora.com>
Mon, 7 Mar 2022 07:48:32 +0000 (14:48 +0700)
committerBenoit TELLIER <btellier@linagora.com>
Tue, 22 Mar 2022 02:01:24 +0000 (09:01 +0700)
commit43205f9c2357516d95b8ff4405f9e6746727b14f
tree70304c4e4c8cb1adb3a7972e2f12e46d3b260e65
parent92dcc05469b17f014fc72711ec0c3269b4160b7b
JAMES-3715 Fix SMTP pipelining

Concurrent modifications of the pipeline are not safe, embed the line handler
logic into the core handler to avoid bad surprises...
13 files changed:
protocols/api/src/main/java/org/apache/james/protocols/api/ProtocolSession.java
protocols/api/src/main/java/org/apache/james/protocols/api/ProtocolSessionImpl.java
protocols/api/src/main/java/org/apache/james/protocols/api/ProtocolTransport.java
protocols/api/src/test/java/org/apache/james/protocols/api/AbstractProtocolTransportTest.java
protocols/netty/src/main/java/org/apache/james/protocols/netty/BasicChannelUpstreamHandler.java
protocols/netty/src/main/java/org/apache/james/protocols/netty/LineHandlerAware.java [new file with mode: 0644]
protocols/netty/src/main/java/org/apache/james/protocols/netty/NettyProtocolTransport.java
protocols/netty/src/main/java/org/apache/james/protocols/netty/NettyServer.java
protocols/smtp/src/test/java/org/apache/james/protocols/smtp/utils/BaseFakeSMTPSession.java
server/protocols/protocols-pop3/src/main/java/org/apache/james/pop3server/netty/POP3Server.java
server/protocols/protocols-smtp/src/main/java/org/apache/james/smtpserver/netty/SMTPChannelUpstreamHandler.java
server/protocols/protocols-smtp/src/main/java/org/apache/james/smtpserver/netty/SMTPServer.java
testing/base/src/main/resources/logback-test.xml