Skip to content

Commit bd1038a

Browse files
authored
[ISSUE #10110] Plain request process success and response fail when tlsMode=enforcing (#10111)
1 parent 7be7202 commit bd1038a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

remoting/src/main/java/org/apache/rocketmq/remoting/netty/NettyRemotingServer.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,7 @@ protected void channelRead0(ChannelHandlerContext ctx, ByteBuf msg) {
525525
} else if (tlsMode == TlsMode.ENFORCING) {
526526
ctx.close();
527527
log.warn("Clients intend to establish an insecure connection while this server is running in SSL enforcing mode");
528+
throw new UnsupportedOperationException("The NettyRemotingServer in SSL enforcing mode doesn't support plain client");
528529
}
529530

530531
try {

0 commit comments

Comments
 (0)