Skip to content

there is sth wrong with data length of handshake #8

@Hommilist

Description

@Hommilist

when handshake return data back to the function PomeloPackage->public static Package decode(byte[] buffer)

buffer's length is 56133 bytes, first 10 byte is:
1, 0, -37, 65, 123, 34, 99, 111, 100, 101
but in this function I get result length=-9407, actually, data is back and useful, why I get the wrong result ?
seens in my case data length is 4bytes? please check the attacthment for detail.

and another issue is function PomeloClient->private void initData(JSONObject data) throws JSONException
line 312 like this:
this.protosVersion = (this.protos.has("version") ? this.protos.getInt("version") : 0);

in my case, version's value is "PjbxDUhHP9BfncghsFUXLg==", it is not an int type,and throw a ClasscastException, I have turn the protosVersion to be a String

look forward to your reply, thank you so much.
Uploading handshakedata.txt…

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions