Skip to content
Snippets Groups Projects
  1. Mar 24, 2020
    • Richard van der Hoff's avatar
      Clean up some LoggingContext stuff (#7120) · 39230d21
      Richard van der Hoff authored
      * Pull Sentinel out of LoggingContext
      
      ... and drop a few unnecessary references to it
      
      * Factor out LoggingContext.current_context
      
      move `current_context` and `set_context` out to top-level functions.
      
      Mostly this means that I can more easily trace what's actually referring to
      LoggingContext, but I think it's generally neater.
      
      * move copy-to-parent into `stop`
      
      this really just makes `start` and `stop` more symetric. It also means that it
      behaves correctly if you manually `set_log_context` rather than using the
      context manager.
      
      * Replace `LoggingContext.alive` with `finished`
      
      Turn `alive` into `finished` and make it a bit better defined.
      Unverified
      39230d21
  2. Feb 21, 2020
  3. Jan 24, 2020
  4. Jan 16, 2020
  5. Dec 10, 2019
  6. Dec 09, 2019
  7. Oct 30, 2019
  8. Oct 28, 2019
  9. Sep 17, 2019
  10. Aug 13, 2019
    • Erik Johnston's avatar
      Retry well-known lookup before expiry. · 17e1e807
      Erik Johnston authored
      This gives a bit of a grace period where we can attempt to refetch a
      remote `well-known`, while still using the cached result if that fails.
      
      Hopefully this will make the well-known resolution a bit more torelant
      of failures, rather than it immediately treating failures as "no result"
      and caching that for an hour.
      17e1e807
  11. Jul 25, 2019
  12. Jul 23, 2019
  13. Jul 05, 2019
    • Richard van der Hoff's avatar
      Fixes to the federation rate limiter (#5621) · 9481707a
      Richard van der Hoff authored
      - Put the default window_size back to 1000ms (broken by #5181)
      - Make the `rc_federation` config actually do something
      - fix an off-by-one error in the 'concurrent' limit
      - Avoid creating an unused `_PerHostRatelimiter` object for every single
        incoming request
      Unverified
      9481707a
  14. Jul 03, 2019
  15. Jul 02, 2019
  16. Jun 20, 2019
  17. May 10, 2019
  18. Apr 11, 2019
  19. Jan 30, 2019
  20. Jan 17, 2019
  21. Sep 27, 2018
  22. Sep 21, 2018
  23. Aug 10, 2018
  24. Jul 27, 2018
  25. Jul 20, 2018
  26. Jul 17, 2018
  27. Jul 13, 2018
  28. Jul 09, 2018
  29. Jul 04, 2018
  30. Jun 22, 2018
  31. Jun 14, 2018
  32. Jun 05, 2018
  33. May 29, 2018
  34. May 02, 2018
    • Richard van der Hoff's avatar
      Remove spurious unittest.DEBUG · 11607006
      Richard van der Hoff authored
      11607006
    • Richard van der Hoff's avatar
      Fix a class of logcontext leaks · f22e7cda
      Richard van der Hoff authored
      So, it turns out that if you have a first `Deferred` `D1`, you can add a
      callback which returns another `Deferred` `D2`, and `D2` must then complete
      before any further callbacks on `D1` will execute (and later callbacks on `D1`
      get the *result* of `D2` rather than `D2` itself).
      
      So, `D1` might have `called=True` (as in, it has started running its
      callbacks), but any new callbacks added to `D1` won't get run until `D2`
      completes - so if you `yield D1` in an `inlineCallbacks` function, your `yield`
      will 'block'.
      
      In conclusion: some of our assumptions in `logcontext` were invalid. We need to
      make sure that we don't optimise out the logcontext juggling when this
      situation happens. Fortunately, it is easy to detect by checking `D1.paused`.
      f22e7cda
Loading