Arsnael commented on code in PR #2525:
URL: https://github.com/apache/james-project/pull/2525#discussion_r1861434349
##########
server/protocols/protocols-imap4/src/main/java/org/apache/james/imapserver/netty/NettyImapSession.java:
##########
@@ -113,6 +115,21 @@ public void executeSafely(Runnable runnable) {
});
}
+ @Override
+ public ImapProcessor.Responder threadSafe(ImapProcessor.Responder
responder) {
+ return new ImapProcessor.Responder() {
+ @Override
+ public void respond(ImapResponseMessage message) {
+ channel.eventLoop().execute(() -> responder.respond(message));
+ }
+
+ @Override
+ public void flush() {
+ channel.eventLoop().execute(responder::flush);
Review Comment:
```suggestion
channel.eventLoop().execute(responder::flush);
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]