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

add send queue size limit to resolve message backlog. #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

LeoYang06
Copy link

  • add a function to get the size of the send queue.
  • add the maximum size parameter of the send queue, limit the length of the send queue, and discard the latest message beyond the queue limit.

@qicosmos
Copy link
Owner

还可以增加达到上限的一个回调,回调给用户,让用户有机会做反压的处理。

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.

2 participants