Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

publish message with 15MB of image Base64String failed. #572

Open
wangqiwei66 opened this issue Jan 16, 2024 · 1 comment
Open

publish message with 15MB of image Base64String failed. #572

wangqiwei66 opened this issue Jan 16, 2024 · 1 comment

Comments

@wangqiwei66
Copy link

I'm trying to publish a message with a base64String of image ,string length about 15MB. I can log didPublishMessage .but immediately received: [TRACE] [didDisconect]: Optional(Error Domain=MGCDAsyncSocketErrorDomain Code=5 “Write operation timed out” UserInfo={NSLocalizedDescription=Write operation timed out})
Is there anyway to set the maxium payload limit in code ?

@JaylinYu
Copy link
Member

Apparently a tcp timeout while writing big packet yo socket. The max packet size is set by Broker or in connect.

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

No branches or pull requests

2 participants