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

Fixes timeout in messages #1171

Closed
wants to merge 2 commits into from
Closed

Fixes timeout in messages #1171

wants to merge 2 commits into from

Conversation

Csardelacal
Copy link

My understanding is that the old code would have an exponential decay. Basically, it would subtract the amount of seconds that had elapsed since the code started executing with each attempt.

This would mean that a retry after two seconds would subtract 2 seconds from the timeout, a retry after 5 seconds, would remove another 5 seconds.

My understanding is that the old code would have an exponential decay. Basically, it would subtract the amount of seconds that had elapsed since the code started executing with each attempt.

This would mean that a retry after two seconds would subtract 2 seconds from the timeout, a retry after 5 seconds, would remove another 5 seconds.
There was another use of `$thisTimeout` that I missed.
@stale
Copy link

stale bot commented Jun 18, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Jun 18, 2021
@Csardelacal
Copy link
Author

Is there an issue with this code?

@stale stale bot removed the wontfix label Jun 19, 2021
Copy link

@blondie101010 blondie101010 left a comment

Choose a reason for hiding this comment

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

While I think your solution is much better and does make the process more sane, this change could cause some side effects from code expecting the current behavior.

@Csardelacal
Copy link
Author

Csardelacal commented Jul 14, 2021

I don't see an issue with existing implementations coming into play. If somebody requested a timeout of 60 seconds for their application the only side-effect of this code would be that the application is a bit more patient. Since the old timeout would decay too fast. It may slow somebody's application down, but it's definitely not going to cause it to behave poorly.

Meanwhile, somebody expecting their application to wait 60 seconds and getting a timeout after 30 could be a potential issue for an application.

@stale
Copy link

stale bot commented Aug 18, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Aug 18, 2021
@stale stale bot closed this Sep 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants