Skip to content
This repository has been archived by the owner on Nov 10, 2020. It is now read-only.

How to set the message max length #57

Open
SITSGRestia opened this issue Nov 30, 2017 · 2 comments
Open

How to set the message max length #57

SITSGRestia opened this issue Nov 30, 2017 · 2 comments

Comments

@SITSGRestia
Copy link

When I send a big message I got an error:
utils/writeLPBytes: Length (452624) greater than 65535 bytes

@zhgqiang
Copy link

zhgqiang commented Dec 6, 2017

I got an error the same

@wbtvc
Copy link

wbtvc commented May 3, 2018

It only support max length 64K bytes, You must rewrite the code。
message.go: maxLPString =65535

func writeLPBytes(buf []byte, b []byte) (int, error) {
	total, n := 0, len(b)

	if n > int(maxLPString) {
		return 0, fmt.Errorf("utils/writeLPBytes: Length (%d) greater than %d bytes.", n, maxLPString)
	}
...
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants