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

OF-2951: Async stanza delivery #2653

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

Conversation

guusdk
Copy link
Member

@guusdk guusdk commented Jan 9, 2025

Adds a facility to allow for non-blocking stanza delivery.

The new facility is used when probing presence of entities on remote domains (as that can slow down a client that's connecting to Openfire).

Potentially this could/should be used in other places too (as the act of delivery doesn't return a result, and thus isn't expected to be needing a blocking operation), but I thought it best to take baby steps here.

guusdk added 2 commits January 9, 2025 12:27
Allow a packet to be delivered asynchronously. As the act of delivering typically does not yield a result, invokers typically do not need to block for this to complete. Changes in this commit facilitate an invoker to asynchronously handle any exceptions thrown during delivery.
When probing presence of entities on remote domains, do not block for the server-to-server session to be established.

This intends to speed up the process of starting up a client (which now no longer needs to wait for outbound s2s connections to be established).
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