Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Messenger] Store millisecond timestamps as float instead of int to prevent int overflow issues on 32 bit based systems #44797

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

Closed
wants to merge 1 commit into from

Conversation

maartendekeizer
Copy link

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #43860
License MIT
Doc PR n/a

The Redis transport use a score variabel to calculate when a message can be handeld after an failure (retry delay).
This is based on a timestamp in milliseconds and saved in PHP as an integer. On 32 bit based systems (Raspberry Pi for example) an integer overflow will happen, due to this overflow the score calculation is faulty and the message will 'never' be retried.
Redis internaly use double floats so we can use floats to in PHP.

Demo application can be found here https://github.com/maartendekeizer/symfony-issue-43860

@carsonbot carsonbot added this to the 4.4 milestone Dec 26, 2021
@carsonbot carsonbot changed the title Store millisecond timestamps as float instead of int to prevent int overflow issues on 32 bit based systems [Messenger] Store millisecond timestamps as float instead of int to prevent int overflow issues on 32 bit based systems Dec 27, 2021
@nicolas-grekas
Copy link
Member

Closing in favor of #44807

Thanks for giving it a try!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.