Skip to content

Callbacks when a stanza is ack'd or fails to send #252

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

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

Conversation

singpolyma
Copy link
Contributor

@singpolyma singpolyma commented Apr 29, 2025

This adds two new callbacks, one of which runs with a stanza id when a stanza sends and gets an sm ack from the server, and one which runs with a stanza id when a stanza fails and will not be retried.

Incomplete and presented for discussion of the design.

An id element has been added to the send/sm queue in order to facilitate passing this to the callback without re-parsing the stanza.

This is also added to the sm serialization, though we could parse the stanza on restore to avoid this I suppose.

@singpolyma singpolyma force-pushed the sm-ack-fail-callbacks branch from 587e2ee to 2940bef Compare April 29, 2025 20:16
This adds two new callbacks, one of which runs with a stanza id when a
stanza sends and gets an sm ack from the server, and one which runs with
a stanza id when a stanza fails and will not be retried.

Incomplete and presented for discussion of the design.

An id element has been added to the send/sm queue in order to facilitate
passing this to the callback without re-parsing the stanza.

This is also added to the sm serialization, though we could parse the
stanza on restore to avoid this I suppose.

TODO: fail everything on stream end
@singpolyma singpolyma force-pushed the sm-ack-fail-callbacks branch from a936b56 to f60571d Compare April 30, 2025 00:27
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