Skip to content

Prevented multiple messages from sending on single call#975

Merged
lross03 merged 2 commits into
mainfrom
user/Apps247/934-debug-send-loop-fix
Jun 28, 2026
Merged

Prevented multiple messages from sending on single call#975
lross03 merged 2 commits into
mainfrom
user/Apps247/934-debug-send-loop-fix

Conversation

@Apps247

@Apps247 Apps247 commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Resolves #934

Multiple sends were happening in the same call because something in the loop failed and caused a retry after the send command completed successfully.

Changed the failures after a successful send command to immediately return instead of retrying.

Also changed the retry limit from 20 to 5.

@Apps247 Apps247 requested review from Jng468 and lross03 as code owners June 27, 2026 20:38

@raghumanimehta raghumanimehta left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Question: Does returning false lead to more frequent failures?

@lross03 lross03 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

lgtm

@lross03

lross03 commented Jun 28, 2026

Copy link
Copy Markdown
Contributor

Question: Does returning false lead to more frequent failures?

no. we also cant determine if the message sent but a separate failure happened without some kind of handshake with the receiving end.

@lross03 lross03 merged commit 1a23f24 into main Jun 28, 2026
6 checks passed
@lross03 lross03 deleted the user/Apps247/934-debug-send-loop-fix branch June 28, 2026 07:11
@Apps247

Apps247 commented Jun 28, 2026

Copy link
Copy Markdown
Contributor Author

If it becomes a problem, then we can go back to retrying for actual send() when we launch. We can reduce the limit from 20 to 5 so credit usage doesn't blow up

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.

Debug send should not repeatedly send in a loop.

3 participants