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

Scale back the sending rate automatically when timeouts are encountered. #26

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

Conversation

simonkagwi
Copy link
Contributor

@simonkagwi simonkagwi commented Nov 15, 2024

This PR scales back the sending rate (mt_messages_per_second attribute) of the SMPP client when a timeout is encountered. By default the sending rate is reduced by a quarter, but this can be changed in a subclass by overriding the get_new_mt_messages_per_second method.

Also, any exceptions encountered during sending of messages are caught and logged, the status of the message is updated to "error", and a string representation of the exception is saved in a new error field.

@simonkagwi simonkagwi marked this pull request as ready for review November 18, 2024 15:25
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.

Scale back sending rate automatically when timeouts are encountered
1 participant