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

stream-management: Request ack on connect #1056

Merged
merged 8 commits into from
Jan 17, 2025

Conversation

sonnyp
Copy link
Member

@sonnyp sonnyp commented Jan 16, 2025

Currently stream-management starts requesting ack when sending a first stanza.
This changes that to start requesting ack on online or resumed.

Plus other small improvements

Comment on lines -174 to +189
clearTimeout(requestAckTimeout);
requestAckTimeout = setTimeout(requestAck, sm.debounceAckRequest);
queueMicrotask(requestAck);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@singpolyma ok for you?

I removed debounceAckRequest, will try to hook into sendMany later

@sonnyp sonnyp requested a review from singpolyma January 16, 2025 23:06
@sonnyp sonnyp merged commit ee361dc into main Jan 17, 2025
3 checks passed
@sonnyp sonnyp deleted the stream-management-discard-queue-on-online branch January 17, 2025 08:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant