summary refs log tree commit diff
path: root/synapse/util (follow)
Commit message (Expand)AuthorAgeFilesLines
...
* Use errback pattern and catch async failuresErik Johnston2018-10-081-14/+29
* Log looping call exceptionsErik Johnston2018-10-051-1/+18
* Correctly match 'dict.pop' apiErik Johnston2018-10-011-3/+11
* Don't update eviction metrics on explicit removalErik Johnston2018-10-011-5/+0
* Merge remote-tracking branch 'origin/develop' into erikj/destination_retry_cacheRichard van der Hoff2018-09-281-4/+37
|\
| * Include eventid in log lines when processing incoming federation transactions...Richard van der Hoff2018-09-271-4/+37
* | Merge branch 'rav/fix_expiring_cache_len' into erikj/destination_retry_cacheRichard van der Hoff2018-09-261-10/+17
|\|
| * Log which cache is throwing exceptionsRichard van der Hoff2018-09-261-10/+17
| * Fix ExpiringCache.__len__ to be accurateErik Johnston2018-09-261-10/+7
* | Fix ExpiringCache.__len__ to be accurateErik Johnston2018-09-211-12/+9
* | Add a five minute cache to get_destination_retry_timingsErik Johnston2018-09-211-0/+13
* | Make ExpiringCache slightly more performantErik Johnston2018-09-211-1/+5
|/
* Fix some instances of ExpiringCache not expiring cache itemsErik Johnston2018-09-211-1/+0
* Improve the logging when handling a federation transaction (#3904)Richard van der Hoff2018-09-191-1/+1
* Replace custom DeferredTimeoutError with defer.TimeoutErrorErik Johnston2018-09-191-9/+3
* Run canceller first to allow it to generate correct errorErik Johnston2018-09-191-2/+5
* Update to use new timeout function everywhere.Erik Johnston2018-09-191-54/+19
* Fix timeout functionErik Johnston2018-09-151-1/+2
* Add an awful secondary timeout to fix wedged requestsErik Johnston2018-09-141-0/+51
* Add in flight real time metrics for Measure blocksErik Johnston2018-09-141-0/+22
* Change the manhole SSH key to have more bitsErik Johnston2018-09-111-13/+31
* Fix exceptions when a connection is closed before we read the headersRichard van der Hoff2018-08-201-1/+3
* Robustness fix for logcontext filterRichard van der Hoff2018-08-201-1/+7
* Port over enough to get some sytests running on Python 3 (#3668)Amber Brown2018-08-203-8/+29
* Merge branch 'rav/fix_linearizer_cancellation' into developRichard van der Hoff2018-08-101-43/+68
|\
| * Fix linearizer cancellation on twisted < 18.7Richard van der Hoff2018-08-101-43/+68
* | Rename async to async_helpers because `async` is a keyword on Python 3.7 (#3678)Amber Brown2018-08-105-4/+4
|/
* Python 3: Convert some unicode/bytes uses (#3569)Amber Brown2018-08-021-3/+3
* fix invalidationRichard van der Hoff2018-07-271-1/+1
* Rewrite cache list decoratorRichard van der Hoff2018-07-271-67/+64
* Fix some looping_call calls which were broken in #3604Richard van der Hoff2018-07-261-1/+1
* Test and fix support for cancellation in LinearizerRichard van der Hoff2018-07-201-6/+22
* Combine Limiter and LinearizerRichard van der Hoff2018-07-201-89/+10
* Improvements to the LimiterRichard van der Hoff2018-07-201-13/+20
* Add a sleep to the Limiter to fix stack overflows.Richard van der Hoff2018-07-201-3/+20
* Don't spew errors because we can't save metrics (#3563)Amber Brown2018-07-192-6/+24
* Make Distributor run its processes as a background processRichard van der Hoff2018-07-181-26/+18
* Run things as background processesRichard van der Hoff2018-07-182-1/+9
* Use efficient .intersectionErik Johnston2018-07-171-4/+1
* Fix perf regression in PR #3530Erik Johnston2018-07-171-1/+6
* Merge pull request #3530 from matrix-org/erikj/stream_cacheAmber Brown2018-07-171-8/+1
|\
| * Don't return unknown entities in get_entities_changedErik Johnston2018-07-131-8/+1
* | Make FederationRateLimiter queue requests properlyRichard van der Hoff2018-07-131-10/+23
|/
* Reduce set building in get_entities_changedRichard van der Hoff2018-07-121-8/+12
* Attempt to include db threads in cpu usage stats (#3496)Richard van der Hoff2018-07-101-2/+21
* Refactor logcontext resource usage tracking (#3501)Richard van der Hoff2018-07-102-49/+120
* run isortAmber Brown2018-07-0922-73/+71
* Attempt to be more performant on PyPy (#3462)Amber Brown2018-06-281-1/+1
* Revert "Revert "Try to not use as much CPU in the StreamChangeCache"" (#3454)Amber Brown2018-06-281-2/+4
* Revert "Try to not use as much CPU in the StreamChangeCache"Matthew Hodgson2018-06-261-4/+2
* fixesAmber Brown2018-06-261-2/+2
* fixesAmber Brown2018-06-261-2/+2
* try and make loading items from the cache fasterAmber Brown2018-06-261-2/+4
* Remove all global reactor imports & pass it around explicitly (#3424)Amber Brown2018-06-251-0/+3
* Disable partial state group caching for wildcard lookupsRichard van der Hoff2018-06-221-13/+12
* Merge pull request #3419 from matrix-org/rav/events_per_requestRichard van der Hoff2018-06-221-0/+15
|\
| * Indirect evt_count updates via method callRichard van der Hoff2018-06-221-0/+11
| * Log number of events fetched from DBRichard van der Hoff2018-06-211-0/+4
* | Pass around the reactor explicitly (#3385)Amber Brown2018-06-224-33/+43
|/
* Remove run_on_reactor (#3395)Amber Brown2018-06-141-9/+1
* Port to sortedcontainers (with tests!) (#3332)Amber Brown2018-06-061-26/+31
* Add hacky cache factor override systemErik Johnston2018-06-042-2/+12
* Consistently use six's iteritems and wrap lazy keys/values in list() if they'...Amber Brown2018-05-312-3/+5
* Merge pull request #3281 from NotAFile/py3-six-isinstanceAmber Brown2018-05-302-11/+15
|\
| * pep8Adrian Tschira2018-05-291-0/+1
| * fix recursion errorAdrian Tschira2018-05-241-7/+5
| * remaining isintance fixesAdrian Tschira2018-05-242-6/+11
* | fix up testsAmber Brown2018-05-281-3/+3
* | update to more consistently use seconds in any metrics or loggingAmber Brown2018-05-283-19/+19
* | add comment about why unregAmber Brown2018-05-281-0/+2
* | Merge remote-tracking branch 'origin/develop' into 3218-official-promAmber Brown2018-05-282-1/+24
|\|
| * Merge pull request #3247 from NotAFile/py3-miscAmber Brown2018-05-241-1/+6
| |\
| | * fix py3 intern and remove unnecessary py3 encodeAdrian Tschira2018-05-191-1/+6
| * | Merge pull request #3245 from NotAFile/batch-iterAmber Brown2018-05-241-0/+18
| |\ \
| | * | Add batch_iter to utilsAdrian Tschira2018-05-191-0/+18
| | |/
* | | cleanupAmber Brown2018-05-221-5/+10
* | | cleanup pep8 errorsAmber Brown2018-05-221-2/+5
* | | fixesAmber Brown2018-05-222-12/+30
* | | Merge remote-tracking branch 'origin/develop' into 3218-official-promAmber Brown2018-05-221-11/+27
|\| |
| * | CommentErik Johnston2018-05-221-1/+1
| * | Fix logcontext resource usage trackingErik Johnston2018-05-221-11/+27
| |/
* / replacing portionsAmber Brown2018-05-217-98/+71
|/
* Merge remote-tracking branch 'origin/develop' into rav/warn_on_logcontext_failRichard van der Hoff2018-05-0315-136/+342
|\
| * Fix logcontext leaks in rate limiterRichard van der Hoff2018-05-031-3/+14
| * Merge branch 'develop' into rav/more_logcontext_leaksRichard van der Hoff2018-05-021-1/+1
| |\
| | * Fix incorrect reference to StringIORichard van der Hoff2018-05-021-1/+1
| * | Fix a class of logcontext leaksRichard van der Hoff2018-05-021-22/+38
| |/
| * Merge pull request #3144 from matrix-org/rav/run_in_background_exception_hand...Richard van der Hoff2018-04-301-1/+7
| |\
| | * Trap exceptions thrown within run_in_backgroundRichard van der Hoff2018-04-271-1/+7
| * | Merge branch 'develop' into py3-xrange-1Richard van der Hoff2018-04-307-12/+17
| |\ \
| | * \ Merge pull request #3154 from NotAFile/py3-stringioRichard van der Hoff2018-04-301-1/+1
| | |\ \
| | | * | replace stringIO importsAdrian Tschira2018-04-281-1/+1
| | * | | Merge pull request #3155 from NotAFile/py3-bytes-1Richard van der Hoff2018-04-301-2/+5
| | |\ \ \
| | | * | | more bytes stringsAdrian Tschira2018-04-291-2/+5
| | | |/ /
| | * | | Merge pull request #3140 from matrix-org/rav/use_run_in_backgroundRichard van der Hoff2018-04-305-9/+11
| | |\ \ \ | | | |/ / | | |/| |
| | | * | Merge remote-tracking branch 'origin/develop' into rav/use_run_in_backgroundRichard van der Hoff2018-04-271-1/+6
| | | |\ \
| | | * | | Use run_in_background in preference to preserve_fnRichard van der Hoff2018-04-275-9/+11
| | | | |/ | | | |/|
| * | / | Move more xrange to sixAdrian Tschira2018-04-283-5/+10
| |/ / /
| * | | Merge remote-tracking branch 'origin/develop' into rav/deferred_timeoutRichard van der Hoff2018-04-271-1/+6
| |\ \ \ | | | |/ | | |/|
| | * | Improve exception handling for background processesRichard van der Hoff2018-04-271-1/+6
| | |/
| * | Backport deferred.addTimeoutRichard van der Hoff2018-04-271-0/+67
| * | Use deferred.addTimeout instead of time_bound_deferredRichard van der Hoff2018-04-231-56/+0
| |/
| * Merge pull request #3107 from NotAFile/py3-bool-nonzeroRichard van der Hoff2018-04-201-0/+1
| |\
| | * add __bool__ alias to __nonzero__ methodsAdrian Tschira2018-04-151-0/+1
| * | Merge pull request #3110 from NotAFile/py3-six-queueRichard van der Hoff2018-04-201-2/+2
| |\ \
| | * | Replace Queue with six.moves.queueAdrian Tschira2018-04-161-2/+2
| | |/
| * | Merge pull request #3093 from matrix-org/rav/response_cache_wrapRichard van der Hoff2018-04-201-14/+74
| |\ \ | | |/ | |/|
| | * ResponseCache: fix handling of completed resultsRichard van der Hoff2018-04-131-13/+19
| | * Refactor ResponseCache usageRichard van der Hoff2018-04-121-2/+56
| * | Revert "Use sortedcontainers instead of blist"Richard van der Hoff2018-04-131-2/+2
| |/
| * Merge pull request #3092 from matrix-org/rav/response_cache_metricsRichard van der Hoff2018-04-121-1/+13
| |\
| | * Add metrics for ResponseCacheRichard van der Hoff2018-04-101-1/+13
| * | Merge pull request #3059 from matrix-org/rav/doc_response_cacheRichard van der Hoff2018-04-121-0/+32
| |\ \
| | * | Document the behaviour of ResponseCacheRichard van der Hoff2018-04-041-0/+32
| * | | Use sortedcontainers instead of blistVincent Breitmoser2018-04-101-2/+2
| | |/ | |/|
| * | Revert "Merge pull request #3066 from matrix-org/rav/remove_redundant_metrics"Richard van der Hoff2018-04-091-0/+25
| * | Merge pull request #3068 from matrix-org/rav/fix_cache_invalidationRichard van der Hoff2018-04-051-26/+38
| |\ \
| | * | Fix overzealous cache invalidationRichard van der Hoff2018-04-051-26/+38
| * | | Remove redundant metrics which were deprecated in 0.27.0.Richard van der Hoff2018-04-041-25/+0
| |/ /
| * / Use static JSONEncodersRichard van der Hoff2018-03-291-0/+19
| |/
| * 404 correctly on missing paths via NoResourceMatthew Hodgson2018-03-231-2/+2
| * Add commentsErik Johnston2018-03-191-0/+7
| * Fix bug where state cache used lots of memoryErik Johnston2018-03-152-5/+9
* | Make 'unexpected logging context' into warningsRichard van der Hoff2018-03-151-2/+2
|/
* Factor run_in_background out from preserve_fnRichard van der Hoff2018-03-081-24/+29
* Rewrite make_deferred_yieldable avoiding inlineCallbacksRichard van der Hoff2018-03-011-9/+11
* report metrics on number of cache evictionsRichard van der Hoff2018-02-053-4/+34
* Add federation_domain_whitelist option (#2820)Matthew Hodgson2018-01-221-0/+12
* Merge pull request #2813 from matrix-org/matthew/registrations_require_3pidMatthew Hodgson2018-01-221-0/+48
|\
| * fix PR nitpickingMatthew Hodgson2018-01-191-3/+6
| * rewrite based on PR feedback:Matthew Hodgson2018-01-191-0/+45
* | Merge pull request #2804 from matrix-org/erikj/file_consumerErik Johnston2018-01-181-0/+139
|\ \
| * | Do logcontexts correctlyErik Johnston2018-01-181-2/+2
| * | Move test stuff to testsErik Johnston2018-01-181-25/+1
| * | Make all fields privateErik Johnston2018-01-181-31/+31
| * | Ensure we registerProducer isn't called twiceErik Johnston2018-01-181-0/+3
| * | Fix _notify_empty typoErik Johnston2018-01-181-1/+1
| * | Move definition of paused_producer to __init__Erik Johnston2018-01-181-2/+4
| * | Fix commentsErik Johnston2018-01-181-3/+3
| * | Add decent impl of a FileConsumerErik Johnston2018-01-171-0/+158
* | | Fix bugs in block metricsRichard van der Hoff2018-01-181-2/+4
| |/ |/|
* | Track DB scheduling delay per-requestRichard van der Hoff2018-01-162-2/+30
* | Track db txn time in millisecsRichard van der Hoff2018-01-162-6/+11
* | Optimise LoggingContext creation and copyingRichard van der Hoff2018-01-161-7/+18
|/
* Reorganise request and block metricsRichard van der Hoff2018-01-151-11/+42
* Remove __PreservingContextDeferred tooRichard van der Hoff2017-11-141-30/+0
* Remove preserve_context_over_{fn, deferred}Richard van der Hoff2017-11-143-49/+10
* Logging and logcontext fixes for LimiterRichard van der Hoff2017-11-071-7/+17
* fix vars named `l`Richard van der Hoff2017-10-232-7/+4
* replace 'except:' with 'except Exception:'Richard van der Hoff2017-10-234-11/+11
* Fix logcontext handling for persist_eventsRichard van der Hoff2017-10-171-0/+5
* Merge pull request #2532 from matrix-org/rav/fix_linearizerRichard van der Hoff2017-10-111-2/+22
|\
| * Fix stackoverflow and logcontexts from linearizerRichard van der Hoff2017-10-111-2/+22
* | logformatter: fix AttributeErrorRichard van der Hoff2017-10-111-3/+11
* | Fancy logformatter to format exceptions betterRichard van der Hoff2017-10-091-0/+43
|/
* Fix logcontext handling for concurrently_executeRichard van der Hoff2017-10-061-2/+2
* pep8David Baker2017-09-261-0/+1
* unnecessary parensDavid Baker2017-09-261-1/+1
* Add module_loader.pyDavid Baker2017-09-261-0/+41
* Increase default cache factor size.Erik Johnston2017-07-041-1/+1
* Define CACHE_SIZE_FACTOR onceErik Johnston2017-07-042-9/+2
* Use an ExpiringCache for storing registration sessionsErik Johnston2017-06-291-0/+3
* Rewrite conditionalErik Johnston2017-06-091-1/+1
* Fix has_any_entity_changedErik Johnston2017-06-091-4/+4
* Add stream change cacheErik Johnston2017-05-311-0/+15
* Pull out if statement from for loopErik Johnston2017-05-221-6/+14
* Update list cache to handle one arg caseErik Johnston2017-05-221-17/+33
* Make get_state_groups_from_groups faster.Erik Johnston2017-05-171-11/+46
* Don't update event cache hit ratio from get_joined_usersErik Johnston2017-05-081-3/+6
* Optimise caches with single keyErik Johnston2017-05-041-9/+33
* Instantiate DeferredTimedOutError correctlyRichard van der Hoff2017-05-021-1/+1
* Reduce size of joined_user cacheErik Johnston2017-04-251-0/+14
* Remove DEBUG_CACHESErik Johnston2017-04-251-2/+0
* Reduce cache size by not storing deferredsErik Johnston2017-04-251-18/+21
* Only intern ascii stringsErik Johnston2017-04-241-18/+11
* Fix fixme in preserve_fnRichard van der Hoff2017-04-031-5/+1
* Remove unused instance variableErik Johnston2017-03-311-4/+0
* DocsErik Johnston2017-03-301-0/+5
* Revert log context changeErik Johnston2017-03-301-3/+0
* Doc new instance variablesErik Johnston2017-03-301-1/+8
* Manually calculate cache key as getcallargs is expensiveErik Johnston2017-03-301-6/+28
* Don't convert to deferreds when not necessaryErik Johnston2017-03-303-2/+8
* Fix the logcontext handling in the cache wrappers (#2077)Richard van der Hoff2017-03-302-16/+37
* Merge pull request #2050 from matrix-org/rav/federation_backoffRichard van der Hoff2017-03-231-4/+25
|\
| * Ignore backoff history for invites, aliases, and roomdirsRichard van der Hoff2017-03-231-2/+11
| * push federation retry limiter down to matrixfederationclientRichard van der Hoff2017-03-231-2/+14
* | Merge pull request #2052 from matrix-org/rav/time_bound_deferredRichard van der Hoff2017-03-231-4/+6
|\ \
| * | Fix time_bound_deferred to throw the right exceptionRichard van der Hoff2017-03-231-4/+6
| |/
* | Fix a couple of logcontext leaksRichard van der Hoff2017-03-231-2/+3
* | Fix caching of remote servers' signature keysRichard van der Hoff2017-03-221-63/+72
|/
* Merge pull request #2026 from matrix-org/rav/logcontext_docsRichard van der Hoff2017-03-201-0/+10
|\
| * Logcontext docsRichard van der Hoff2017-03-171-0/+10
* | Stop preserve_fn leaking context into the reactorRichard van der Hoff2017-03-181-32/+29
|/
* Merge pull request #2016 from matrix-org/rav/queue_pdus_during_joinRichard van der Hoff2017-03-171-0/+25
|\
| * Implement reset_context_after_deferredRichard van der Hoff2017-03-151-0/+25
* | Fix assertion to stop transaction queue getting wedgedRichard van der Hoff2017-03-151-1/+1
* | Support registration / login with phone numberDavid Baker2017-03-131-0/+40
|/
* Revert "Support registration & login with phone number"Erik Johnston2017-03-131-40/+0
* Add setdefault key to ExpiringCacheErik Johnston2017-03-101-0/+7
* DocsDavid Baker2017-03-081-0/+13
* Incorrectly copied copyrightDavid Baker2017-03-081-1/+0
* pep8David Baker2017-03-081-0/+1
* Add msisdn util fileDavid Baker2017-03-081-0/+27
* CommentErik Johnston2017-02-021-1/+4
* CommentErik Johnston2017-02-021-0/+2
* Correctly raise exceptions for ratelimitng. Ratelimit on 401Erik Johnston2017-02-011-3/+5
* Remove explicit < 400 check as apparently this is confusingErik Johnston2017-01-311-3/+1
* CommentErik Johnston2017-01-311-0/+2
* CommentErik Johnston2017-01-311-0/+4
* Better handle 404 response for federation /send/Erik Johnston2017-01-311-2/+13
* Update LruCache size estimate on clearErik Johnston2017-01-181-0/+2
* Measure metrics of string_cacheErik Johnston2017-01-171-3/+8
* Fix typo in return typeErik Johnston2017-01-171-3/+2
* Rename and comment tree_to_leaves_iteratorErik Johnston2017-01-172-5/+8
* Remove needless call to evict()Erik Johnston2017-01-171-1/+0
* Speed up cache size calculationErik Johnston2017-01-175-46/+128
* Use OrderedDict in ExpiringCacheErik Johnston2017-01-161-10/+4
* Add support for 'iterable' to ExpiringCacheErik Johnston2017-01-161-9/+17
* Optionally measure size of cache by sum of length of valuesErik Johnston2017-01-132-19/+38
* Remove full_twisted_stacktraces optionErik Johnston2017-01-121-71/+0
* Add paranoia exception catch in LinearizerErik Johnston2017-01-101-2/+5
* More logging for the linearizer and for get_eventsMark Haines2017-01-051-2/+11
* s/aquire/acquire/gMark Haines2016-12-301-1/+1
* Add more useful logging when we block fetching eventsMark Haines2016-12-301-0/+5
* Merge pull request #1620 from matrix-org/erikj/concurrent_room_accessErik Johnston2016-12-121-0/+58
|\
| * CommentsErik Johnston2016-11-111-0/+13
| * Add Limiter: limit concurrent access to resourceErik Johnston2016-11-101-0/+45
* | Correctly handle timeout errorsErik Johnston2016-12-091-1/+6
* | Use correct varErik Johnston2016-11-241-1/+1
* | Correctly handle 500's and 429 on federationErik Johnston2016-11-241-1/+1
* | Invalidate retry cache in both directionsErik Johnston2016-11-221-9/+12
* | Handle sending events and device messages over federationErik Johnston2016-11-171-3/+14
* | Use external ldap auth pacakgeErik Johnston2016-11-151-369/+0
* | Clean transactions based on time. Add HttpTransactionCache tests.Kegan Dougal2016-11-141-1/+9
|/
* Explicitly set authentication mode in ldap3Erik Johnston2016-11-081-1/+2
* Implement pluggable password authErik Johnston2016-10-031-0/+368
* Change get_pos_of_last_change to return upper boundErik Johnston2016-09-151-3/+4
* Use stream_change cache to make get_forward_extremeties_for_room cache more e...Erik Johnston2016-09-151-0/+5
* Fix up push to use get_current_state_idsErik Johnston2016-08-251-176/+0
* Preserve some logcontextsErik Johnston2016-08-242-8/+16
* Merge pull request #1031 from matrix-org/erikj/measure_notifierErik Johnston2016-08-221-1/+1
|\
| * Only abort Measure on ExceptionsErik Johnston2016-08-191-1/+1
* | Ensure invalidation list does not grow unboundedlyErik Johnston2016-08-192-20/+16
* | Rename to on_invalidateErik Johnston2016-08-191-16/+10
* | Make cache_context an explicit optionErik Johnston2016-08-191-8/+27
* | Remove lru optionErik Johnston2016-08-191-23/+8
* | Add concept of cache contextsErik Johnston2016-08-193-20/+99
|/
* Clean up TransactionQueueErik Johnston2016-08-102-3/+1
* Measure federation send transaction resourcesErik Johnston2016-08-101-0/+14
* Add federation /version APIErik Johnston2016-08-051-4/+4