Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Rename async to async_helpers because `async` is a keyword on Python 3.7 (#3678) | Amber Brown | 2018-08-10 | 1 | -415/+0 |
| | |||||
* | Test and fix support for cancellation in Linearizer | Richard van der Hoff | 2018-07-20 | 1 | -6/+22 |
| | |||||
* | Combine Limiter and Linearizer | Richard van der Hoff | 2018-07-20 | 1 | -89/+10 |
| | | | | | Linearizer was effectively a Limiter with max_count=1, so rather than maintaining two sets of code, let's combine them. | ||||
* | Improvements to the Limiter | Richard van der Hoff | 2018-07-20 | 1 | -13/+20 |
| | | | | | * give them names, to improve logging * use a deque rather than a list for efficiency | ||||
* | Add a sleep to the Limiter to fix stack overflows. | Richard van der Hoff | 2018-07-20 | 1 | -3/+20 |
| | | | | Fixes #3570 | ||||
* | run isort | Amber Brown | 2018-07-09 | 1 | -8/+10 |
| | |||||
* | Pass around the reactor explicitly (#3385) | Amber Brown | 2018-06-22 | 1 | -14/+11 |
| | |||||
* | Remove run_on_reactor (#3395) | Amber Brown | 2018-06-14 | 1 | -9/+1 |
| | |||||
* | Merge branch 'develop' into py3-xrange-1 | Richard van der Hoff | 2018-04-30 | 1 | -2/+2 |
|\ | |||||
| * | Merge pull request #3140 from matrix-org/rav/use_run_in_background | Richard van der Hoff | 2018-04-30 | 1 | -2/+2 |
| |\ | | | | | | | Use run_in_background in preference to preserve_fn | ||||
| | * | Use run_in_background in preference to preserve_fn | Richard van der Hoff | 2018-04-27 | 1 | -2/+2 |
| | | | | | | | | | | | | | | | | | | While I was going through uses of preserve_fn for other PRs, I converted places which only use the wrapped function once to use run_in_background, to avoid creating the function object. | ||||
* | | | Move more xrange to six | Adrian Tschira | 2018-04-28 | 1 | -2/+4 |
|/ / | | | | | | | | | | | plus a bonus next() Signed-off-by: Adrian Tschira <nota@notafile.com> | ||||
* / | Backport deferred.addTimeout | Richard van der Hoff | 2018-04-27 | 1 | -0/+67 |
|/ | | | | Twisted 16.0 doesn't have addTimeout, so let's backport it. | ||||
* | Remove preserve_context_over_{fn, deferred} | Richard van der Hoff | 2017-11-14 | 1 | -3/+3 |
| | | | | | Both of these functions ae known to leak logcontexts. Replace the remaining calls to them and kill them off. | ||||
* | Logging and logcontext fixes for Limiter | Richard van der Hoff | 2017-11-07 | 1 | -7/+17 |
| | | | | | | | | | Add some logging to the Limiter in a similar spirit to the Linearizer, to help debug issues. Also fix a logcontext leak. Also refactor slightly to avoid throwing exceptions. | ||||
* | replace 'except:' with 'except Exception:' | Richard van der Hoff | 2017-10-23 | 1 | -3/+3 |
| | | | | what could possibly go wrong | ||||
* | Fix logcontext handling for persist_events | Richard van der Hoff | 2017-10-17 | 1 | -0/+5 |
| | | | | | | | | * don't use preserve_context_over_deferred, which is known broken. * remove a redundant preserve_fn. * add/improve some comments | ||||
* | Fix stackoverflow and logcontexts from linearizer | Richard van der Hoff | 2017-10-11 | 1 | -2/+22 |
| | | | | | | | 1. make it not blow out the stack when there are more than 50 things waiting for a lock. Fixes https://github.com/matrix-org/synapse/issues/2505. 2. Make it not mess up the log contexts. | ||||
* | Fix logcontext handling for concurrently_execute | Richard van der Hoff | 2017-10-06 | 1 | -2/+2 |
| | | | | Avoid preserve_context_over_deferred, which is broken. | ||||
* | Docs | Erik Johnston | 2017-03-30 | 1 | -0/+5 |
| | |||||
* | Don't convert to deferreds when not necessary | Erik Johnston | 2017-03-30 | 1 | -1/+1 |
| | |||||
* | Add paranoia exception catch in Linearizer | Erik Johnston | 2017-01-10 | 1 | -2/+5 |
| | |||||
* | More logging for the linearizer and for get_events | Mark Haines | 2017-01-05 | 1 | -2/+11 |
| | |||||
* | s/aquire/acquire/g | Mark Haines | 2016-12-30 | 1 | -1/+1 |
| | |||||
* | Add more useful logging when we block fetching events | Mark Haines | 2016-12-30 | 1 | -0/+5 |
| | |||||
* | Comments | Erik Johnston | 2016-11-11 | 1 | -0/+13 |
| | |||||
* | Add Limiter: limit concurrent access to resource | Erik Johnston | 2016-11-10 | 1 | -0/+45 |
| | |||||
* | Preserve some logcontexts | Erik Johnston | 2016-08-24 | 1 | -4/+5 |
| | |||||
* | Add ReadWriteLock | Erik Johnston | 2016-07-05 | 1 | -0/+82 |
| | |||||
* | Small optimisation to CacheListDescriptor | Erik Johnston | 2016-06-03 | 1 | -0/+9 |
| | |||||
* | Rename things | Erik Johnston | 2016-04-07 | 1 | -5/+5 |
| | |||||
* | Log contexts and squash things together | Erik Johnston | 2016-04-07 | 1 | -17/+15 |
| | |||||
* | Add comment | Erik Johnston | 2016-04-07 | 1 | -0/+8 |
| | |||||
* | Deduplicate joins | Erik Johnston | 2016-04-07 | 1 | -0/+42 |
| | |||||
* | Comment | Erik Johnston | 2016-04-01 | 1 | -1/+1 |
| | |||||
* | Add concurrently_execute function | Erik Johnston | 2016-04-01 | 1 | -1/+31 |
| | |||||
* | Fix up logcontexts | Erik Johnston | 2016-02-08 | 1 | -3/+8 |
| | |||||
* | copyrights | Matthew Hodgson | 2016-01-07 | 1 | -1/+1 |
| | |||||
* | Make @cached cache deferreds rather than the deferreds' values | Erik Johnston | 2015-08-06 | 1 | -2/+7 |
| | |||||
* | Add comment on cancellation of observers | Erik Johnston | 2015-06-19 | 1 | -0/+3 |
| | |||||
* | Refactor the notifier.wait_for_events code to be clearer. Add ↵ | Erik Johnston | 2015-06-18 | 1 | -2/+11 |
| | | | | _NotifierUserStream.new_listener that accpets a token to avoid races. | ||||
* | Merge pull request #143 from matrix-org/erikj/SYN-375 | Mark Haines | 2015-05-12 | 1 | -12/+48 |
|\ | | | | | SYN-375 - Lots of unhandled deferred exceptions. | ||||
| * | Change the way we create observers to deferreds so that we don't get spammed ↵ | Erik Johnston | 2015-05-08 | 1 | -12/+48 |
| | | | | | | | | by 'unhandled errors' | ||||
* | | Change the way we do logging contexts so that they survive divergences | Erik Johnston | 2015-05-08 | 1 | -4/+2 |
|/ | |||||
* | Implement create_observer. | Erik Johnston | 2015-04-27 | 1 | -0/+19 |
| | | | | | | `create_observer` takes a deferred and create a new deferred that *observers* the original deferred. Any callbacks added to the observing deferred will *not* affect the origin deferred. | ||||
* | Update copyright notices | Mark Haines | 2015-01-06 | 1 | -1/+1 |
| | |||||
* | Fix pep8 codestyle warnings | Mark Haines | 2014-11-20 | 1 | -0/+2 |
| | |||||
* | Merge branch 'develop' into request_logging | Mark Haines | 2014-11-14 | 1 | -0/+6 |
|\ | | | | | | | | | | | | | Conflicts: setup.py synapse/storage/_base.py synapse/util/async.py | ||||
| * | Add a run_on_reactor function | Erik Johnston | 2014-10-29 | 1 | -0/+7 |
| | | |||||
* | | Add a request-id to each log line | Mark Haines | 2014-10-30 | 1 | -1/+4 |
|/ | |||||
* | fix the copyright holder from matrix.org to OpenMarket Ltd, as matrix.org ↵ | Matthew Hodgson | 2014-09-03 | 1 | -1/+1 |
| | | | | hasn't been incorporated in time for launch. | ||||
* | add in whitespace after copyright statements to improve legibility | Matthew Hodgson | 2014-08-13 | 1 | -0/+1 |
| | |||||
* | Reference Matrix Home Server | matrix.org | 2014-08-12 | 1 | -0/+22 |