# يعيد Retry-After قيمة 0 ثانية

**URL:** <https://meta.discourse.org/t/retry-after-returns-with-0-seconds/99550>\
**Category:** Bug\
**Created:** [15 أكتوبر 2018، 2:35م UTC](https://meta.discourse.org/t/retry-after-returns-with-0-seconds/99550 "2018-10-15T14:35:37Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![dinomite](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dinomite/32/125526_2.png) [@dinomite](https://meta.discourse.org/u/dinomite)\
**Post date:** [28 نوفمبر 2018، 4:10م UTC](https://meta.discourse.org/t/retry-after-returns-with-0-seconds/99550/3 "2018-11-28T16:10:50Z")

</div>

I’m not entirely sure where this is happening, but I suspect it has to do with use of Lua’s `tonumber()` in [rate\_limiter.rb](https://github.com/dinomite/discourse/blob/aad7df2a1ba083983aaebd186e30e369a73744bb/lib/rate_limiter.rb#L62)—quoth [Redis’ EVAL documentation](https://redis.io/commands/eval):

> Lua has a single numerical type, Lua numbers. There is no distinction between integers and floats. So we always convert Lua numbers into integer replies, removing the decimal part of the number if any.

---

_[View the full topic](https://meta.discourse.org/t/retry-after-returns-with-0-seconds/99550)._
