koarz commented on code in PR #57364:
URL: https://github.com/apache/doris/pull/57364#discussion_r2472470031


##########
fe/fe-core/src/main/java/org/apache/doris/mysql/MysqlChannel.java:
##########
@@ -338,7 +349,7 @@ public ByteBuffer fetchOnePacket() throws IOException {
             // before read, set limit to make read only one packet
             result.limit(result.position() + packetLen);
             readLen = readAll(result, false);
-            if (isSslMode && remainingBuffer.position() == 0 && 
result.hasRemaining()) {
+            if (isSslMode && !isSslHandshaking && remainingBuffer.position() 
== 0 && result.hasRemaining()) {

Review Comment:
   i noticed
   ```java
   public void setSslMode(boolean sslMode) {
       isSslMode = sslMode;
       if (isSslMode) {
           // channel in ssl mode means handshake phase has finished.
           isSslHandshaking = false;
       }
   }
   ```
   Is it necessary to add this check?



-- 
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]

Reply via email to