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

Closed
wants to merge 8 commits into 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 linked an issue Nov 15, 2024 that may be closed by this pull request
@simonkagwi simonkagwi marked this pull request as ready for review November 18, 2024 15:25
@tobiasmcnulty
Copy link
Member

Since #27 fixed the issue we encountered, I think we should hold this branch as work in progress for now, until we encounter it in the field again OR if part/all of this still looks valuable to merge now, @copelco @simonkagwi .

@simonkagwi
Copy link
Contributor Author

@tobiasmcnulty That sounds good to me!

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
2 participants