8000 Feature: SendBuffMsg api with timeout by jursonmo · Pull Request #374 · aceld/zinx · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Feature: SendBuffMsg api with timeout #374

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jursonmo
Copy link

SendBuffMsg(msgID uint32, data []byte) 接口默认是五毫秒超时,有时在大流量的情况下或者网络质量波动的情况下,可能可以忍受10毫秒或更久才返回超时错误。 8957 所以把接口改成:SendBuffMsg(msgID uint32, data []byte, opts ...MsgSendOption), 可以指定自定义的超时时间, 同时兼容业务代码使用SendBuffMsg接口。使用时可以参考例子examples/zinx_tls/server/server.go

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

Successfully merging this pull request may close these issues.

1 participant
0