summary refs log tree commit diff
path: root/synapse/util (follow)
Commit message (Expand)AuthorAgeFilesLines
* Merge branch 'develop' of github.com:matrix-org/synapse into erikj/room_chunksErik Johnston2018-05-231-11/+27
|\
| * CommentErik Johnston2018-05-221-1/+1
| * Fix logcontext resource usage trackingErik Johnston2018-05-221-11/+27
* | More commentsErik Johnston2018-05-171-2/+2
* | Make insert_* functions internal and reorder funcsErik Johnston2018-05-171-109/+113
* | Improve documentation and commentsErik Johnston2018-05-171-8/+43
* | Begin adding implementing room chunksErik Johnston2018-05-171-0/+298
|/
* 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
* Merge pull request #940 from matrix-org/erikj/fed_state_cacheErik Johnston2016-08-021-2/+11
|\
| * Cache federation state responsesErik Johnston2016-07-211-2/+11
* | Fix retry utils to check if the exception is a subclass of CMEMark Haines2016-07-281-1/+1
* | Don't include name of room for invites in pushDavid Baker2016-07-281-1/+4
* | typoMatthew Hodgson2016-07-261-1/+1
|/
* Add ReadWriteLockErik Johnston2016-07-051-0/+82
* Use similar naming we use in email notifs for pushDavid Baker2016-06-241-1/+4
* Remove registered_users from the distributor.Mark Haines2016-06-171-4/+0
* Merge branch 'erikj/cache_perf' of github.com:matrix-org/synapse into developErik Johnston2016-06-032-10/+34
|\
| * Pull out update_results_dictErik Johnston2016-06-031-8/+7
| * Small optimisation to CacheListDescriptorErik Johnston2016-06-032-2/+11
| * Make cachedList go a bit fasterErik Johnston2016-06-031-10/+34
* | Change CacheMetrics to be quickerErik Johnston2016-06-035-25/+44
|/
* catch thinko in presentable namesMatthew Hodgson2016-05-231-4/+15
* DocstringDavid Baker2016-04-291-0/+14
* pep8 newlineDavid Baker2016-04-291-1/+1
* Merge remote-tracking branch 'origin/develop' into dbkr/email_notifsDavid Baker2016-04-292-0/+168
|\
| * Add a metrics listener and a ssh listener to the pusherMark Haines2016-04-251-1/+25
| * Move the listenTCP call outside the manhole functionMark Haines2016-04-251-9/+5
| * Split out setting up the manhole to a separate fileMark Haines2016-04-221-0/+50
| * Split out create_resource_tree to a separate fileMark Haines2016-04-221-0/+98
* | Handle room invites in email notifsDavid Baker2016-04-281-3/+3
* | More variable calculation for email notifsDavid Baker2016-04-251-16/+19
* | TypoDavid Baker2016-04-251-1/+1
* | No we don't: it's just the display nameDavid Baker2016-04-221-1/+0
* | Sort member eventsDavid Baker2016-04-221-0/+4
* | Implement group-of-people namesDavid Baker2016-04-221-17/+14
* | Flesh out email templatingDavid Baker2016-04-211-0/+142
|/
* Create log context in Measure if one doesn't existErik Johnston2016-04-181-6/+17
* Use SynapseError 504 for Timeout errorsErik Johnston2016-04-151-1/+2
* Move the versionstring code out of app.homeserver into utilMark Haines2016-04-112-0/+121
* Remove some unused functions (#711)Mark Haines2016-04-083-21/+0
* Move all the wrapper functions for distributor.fireMark Haines2016-04-081-1/+21
* Rename thingsErik Johnston2016-04-071-5/+5
* Log contexts and squash things togetherErik Johnston2016-04-071-17/+15
* Add commentErik Johnston2016-04-071-0/+8
* Deduplicate joinsErik Johnston2016-04-072-1/+43
* Make the cache objects be per instance rather than being globalMark Haines2016-04-061-21/+24
* CommentErik Johnston2016-04-011-1/+1
* Add concurrently_execute functionErik Johnston2016-04-011-1/+31
* Fix typoMark Haines2016-03-241-1/+1
* Deduplicate identical /sync requestsMark Haines2016-03-241-0/+46
* Simplify intern_dictErik Johnston2016-03-231-17/+10
* Intern all the thingsErik Johnston2016-03-231-1/+57
* String internErik Johnston2016-03-231-0/+8
* Make LruCache use a dedicated _Node classErik Johnston2016-03-221-32/+41
* Return list, not generator.Erik Johnston2016-03-141-3/+1
* Use syntax that works on both py2.7 and py3Mark Haines2016-03-071-1/+1
* Limit stream change cache size tooErik Johnston2016-03-011-1/+5
* Move cache size fiddling to descriptors only. Fix testsErik Johnston2016-03-011-2/+2
* Add enviroment variable SYNAPSE_CACHE_FACTOR, default it to 0.1Erik Johnston2016-03-011-0/+6
* Reraise exceptionErik Johnston2016-03-011-0/+1
* Correct cache miss detectionErik Johnston2016-03-011-1/+1
* Report size of ExpiringCacheErik Johnston2016-02-231-2/+13
* Change the way we figure out presence updates for small deltasErik Johnston2016-02-231-0/+16
* Add presence metricsErik Johnston2016-02-191-0/+6
* WheelTimer: Don't scan list, use index.Erik Johnston2016-02-181-5/+8
* Initial cutErik Johnston2016-02-171-1/+1
* Add wheeltimer implErik Johnston2016-02-171-0/+88
* Merge pull request #566 from matrix-org/erikj/logcontextErik Johnston2016-02-101-16/+13
|\
| * Remove commentErik Johnston2016-02-101-1/+1
| * s/parent_context/previous_context/Erik Johnston2016-02-101-9/+9
| * Set parent context on instansiationErik Johnston2016-02-101-2/+7
| * Don't bother copying records on parent contextErik Johnston2016-02-091-8/+0
* | Fix unit testsErik Johnston2016-02-091-4/+5
* | Don't create new logging contextErik Johnston2016-02-091-12/+15
|/
* Fix bug in util.metrics.MeasureErik Johnston2016-02-091-1/+3
* Create new context when measuringErik Johnston2016-02-091-2/+5
* Change logcontext warns to debugErik Johnston2016-02-091-3/+3
* Fix up logcontextsErik Johnston2016-02-089-28/+169
* Add metrics to pushersErik Johnston2016-02-081-0/+86
* Allowing tagging log contextsErik Johnston2016-02-031-1/+6
* Fix flake8 warnings for new flake8Daniel Wagner-Hall2016-02-026-7/+7
* If stream pos is greater then earliest known key and entity hasn't changed, t...Erik Johnston2016-01-291-8/+3
* Prefill stream change cachesErik Johnston2016-01-291-1/+4