You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by yi...@apache.org on 2026/10/12 06:41:14 UTC
(doris) branch branch-4.1 updated: branch-4.1: [fix](fe) Fix MySQL packet truncation over TLS #68703 (#68925)
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] <41...@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 <ya...@selectdb.com>
---
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: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org