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

The message expiration time is not set correctly when the timespan duration is a fractional number of milliseconds #887

Open
ydie22 opened this issue Sep 27, 2021 · 1 comment

Comments

@ydie22
Copy link

ydie22 commented Sep 27, 2021

It seems that RabbitMQ accepts only integer values for the message expiration header. However, the header value is currently set using TotalMilliseconds.ToString(CultureInfo.InvariantCulture). We have a service that sends messages with a computed expiration time, but that does not round the duration to an integer number of milliseconds. It would probably be better if the transport takes care of this rounding.
In case the value is not an integer, RabbitMQ sends back a 406 Precondition Failed response.

@boblangley
Copy link
Member

Thanks for the request. When we start working on this we will update the issue. As of now, it is not scheduled and there is no ETA.

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

No branches or pull requests

2 participants