Commit graph

6 commits

Author SHA1 Message Date
Matthew Wild
6f6c807bdf mod_limits: Use default limits if none configured 2021-05-11 14:22:59 +01:00
Matthew Wild
08f721a072 mod_limits: Don't emit error when no burst period is configured 2021-05-11 14:10:26 +01:00
Kim Alvefur
7537a96433 mod_limits: Rename variable to avoid name clash [luacheck]
FIXME better name, s_throttle doesn't seem nice
2018-05-02 13:58:28 +02:00
Kim Alvefur
337c4dea6f mod_limits: Fix typo in comment 2017-12-05 11:12:58 +01:00
Matthew Wild
14304764d8 mod_limits: Handle fractional outstanding balance values (caused by e3f7b6fa46ba)
Fractional values were passed to string.sub() when doing buffer manipulations, and
caused random bytes to be skipped in the stream.
2017-09-26 17:48:33 +01:00
Matthew Wild
9f73fcbf8a mod_limits: Import from prosody-modules 2c59f2f0c37d (fixes #129) 2017-09-23 13:29:54 +01:00