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

消息发送的问题 #4

Closed
LinkZhang opened this issue Apr 28, 2019 · 2 comments
Closed

消息发送的问题 #4

LinkZhang opened this issue Apr 28, 2019 · 2 comments

Comments

@LinkZhang
Copy link

  1. 消息长度用2个字节标识,所有消息长度不能大于65535,但是发送消息的时候没有判断消息长度
    如果超过长度发消息会报异常,但这条消息还是会重发几次
    image
    2.重试的间隔写错了吧,应该是getResendInterval()吧
    image
@FreddyChen
Copy link
Owner

  1. 消息长度用2个字节标识,所有消息长度不能大于65535,但是发送消息的时候没有判断消息长度
    如果超过长度发消息会报异常,但这条消息还是会重发几次
    image
    2.重试的间隔写错了吧,应该是getResendInterval()吧
    image

看了一下,确实是,您真细心,谢谢提醒哈,今天晚上改改把代码重新提交一下。

@LinkZhang
Copy link
Author

😀最近正好在做IM这块,不过用的是websocket做的,期待您用websocket实现的文章和代码

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