This is an automated email from the ASF dual-hosted git repository.

yiguolei pushed a commit to branch branch-4.1
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/branch-4.1 by this push:
     new 8c0a847f792 branch-4.1: [fix](fe) Fix MySQL packet truncation over TLS 
#68703 (#68925)
8c0a847f792 is described below

commit 8c0a847f792ef1be83391d6be183f5fd8cb8e3a6
Author: github-actions[bot] 
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Mon Oct 12 14:41:05 2026 +0800

    branch-4.1: [fix](fe) Fix MySQL packet truncation over TLS #68703 (#68925)
    
    Cherry-picked from #68703
    
    Co-authored-by: Mryange <[email protected]>
---
 fe/fe-core/src/main/java/org/apache/doris/mysql/MysqlChannel.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fe/fe-core/src/main/java/org/apache/doris/mysql/MysqlChannel.java 
b/fe/fe-core/src/main/java/org/apache/doris/mysql/MysqlChannel.java
index 3eec1803b80..fc2573fd564 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/mysql/MysqlChannel.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/mysql/MysqlChannel.java
@@ -385,7 +385,7 @@ public class MysqlChannel implements BytesChannel {
                 result.compact();
                 // when encounter large sql query, one mysql packet will be 
packed as multiple ssl packets.
                 // we need to read all ssl packets to combine the complete 
mysql packet.
-                while (mysqlPacketLength > result.limit()) {
+                while (mysqlPacketLength > result.position()) {
                     sslHeaderByteBuffer.clear();
                     readLen = readAll(sslHeaderByteBuffer, true);
                     if (readLen != SSL_PACKET_HEADER_LEN) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to