You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var index = 0
for index < len(packet) {
var err error
var remain = len(packet) - index
var bytesWritten int
**bytesWritten, err = pc.writeToBuffer(packet[index:], mc.compressionSequence, remain < minCompressSize)**
if err != nil {
return index, err
}
the function
func (pc *packetCompressor) writePacket(mc *mysqlConn, packet []byte) (int, error) {
if len(packet) == 0 {
return 0, nil
}
Please see the BOLD line
and the function writeToBuffer
func (pc *packetCompressor) writeToBuffer(data []byte, sequence uint8, compress bool) (int, error) {
the 3rd parameter is compress bool, it means always is false.
The text was updated successfully, but these errors were encountered: