Skip to content

Packet len is out of range when starting #8622

@szd1993

Description

@szd1993

when consumer starting , it will get all dubbo node from zookeeper, then "Packet len is out of range"

why not only get node that with @DubboReference

just for less request ?

    void readLength() throws IOException {
        int len = this.incomingBuffer.getInt();
        if (len >= 0 && len < this.packetLen) {
            this.incomingBuffer = ByteBuffer.allocate(len);
        } else {
            throw new IOException("Packet len" + len + " is out of range!");
        }
    }

Environment

  • Dubbo version: 2.7.8
  • Operating System version: xxx
  • Java version: 8

Steps to reproduce this issue

  1. xxx
  2. xxx
  3. xxx

Pls. provide [GitHub address] to reproduce this issue.

Expected Result

What do you expected from the above steps?

Actual Result

What actually happens?

If there is an exception, please attach the exception trace:

Just put your stack trace here!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions