mirror of
https://github.com/actiontech/dble.git
synced 2026-01-05 20:30:40 -06:00
fix: front-end determines that the packet size cannot exceed the set value
This commit is contained in:
@@ -123,6 +123,9 @@ public abstract class FrontendService<T extends UserConfig> extends AbstractServ
|
||||
if (data != null && !executeTask.isReuse()) {
|
||||
this.setPacketId(executeTask.getLastSequenceId());
|
||||
}
|
||||
if (data != null && data.length - MySQLPacket.PACKET_HEADER_SIZE >= SystemConfig.getInstance().getMaxPacketSize()) {
|
||||
throw new IllegalArgumentException("Packet for query is too large (" + data.length + " > " + SystemConfig.getInstance().getMaxPacketSize() + ").You can change maxPacketSize value in bootstrap.cnf.");
|
||||
}
|
||||
|
||||
this.handleInnerData(data);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user