forked-synapse/synapse/util
Erik Johnston 3baf6e1667 Fix ExpiringCache.__len__ to be accurate
It used to try and produce an estimate, which was sometimes negative.
This caused metrics to be sad, so lets always just calculate it from
scratch.

(This appears to have been a longstanding bug, but one which has been made more
of a problem by #3932 and #3933).

(This was originally done by Erik as part of #3933. I'm cherry-picking it
because really it's a fix in its own right)
2018-09-26 12:32:29 +01:00
..
caches Fix ExpiringCache.__len__ to be accurate 2018-09-26 12:32:29 +01:00
__init__.py run isort 2018-07-09 16:09:20 +10:00
async_helpers.py Replace custom DeferredTimeoutError with defer.TimeoutError 2018-09-19 11:07:29 +01:00
distributor.py Make Distributor run its processes as a background process 2018-07-18 20:55:05 +01:00
file_consumer.py run isort 2018-07-09 16:09:20 +10:00
frozenutils.py Python 3: Convert some unicode/bytes uses (#3569) 2018-08-02 00:54:06 +10:00
httpresourcetree.py run isort 2018-07-09 16:09:20 +10:00
jsonobject.py Handle sending events and device messages over federation 2016-11-17 15:48:04 +00:00
logcontext.py Fix exceptions when a connection is closed before we read the headers 2018-08-20 18:21:10 +01:00
logformatter.py run isort 2018-07-09 16:09:20 +10:00
logutils.py Port over enough to get some sytests running on Python 3 (#3668) 2018-08-20 23:54:49 +10:00
manhole.py Change the manhole SSH key to have more bits 2018-09-11 10:42:10 +01:00
metrics.py Add in flight real time metrics for Measure blocks 2018-09-14 15:08:37 +01:00
module_loader.py pep8 2017-09-26 19:21:41 +01:00
msisdn.py run isort 2018-07-09 16:09:20 +10:00
ratelimitutils.py Make FederationRateLimiter queue requests properly 2018-07-13 16:19:40 +01:00
retryutils.py Improve the logging when handling a federation transaction (#3904) 2018-09-19 17:28:18 +01:00
rlimit.py run isort 2018-07-09 16:09:20 +10:00
stringutils.py Port over enough to get some sytests running on Python 3 (#3668) 2018-08-20 23:54:49 +10:00
threepids.py fix PR nitpicking 2018-01-19 18:23:45 +00:00
versionstring.py Port over enough to get some sytests running on Python 3 (#3668) 2018-08-20 23:54:49 +10:00
wheel_timer.py Move more xrange to six 2018-04-28 13:57:00 +02:00