Skip to content
Snippets Groups Projects
  1. Oct 28, 2019
  2. Sep 17, 2019
  3. 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
  4. Jul 25, 2019
  5. Jul 23, 2019
  6. 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
  7. Jul 03, 2019
  8. Jul 02, 2019
  9. Jun 20, 2019
  10. May 10, 2019
  11. Apr 11, 2019
  12. Jan 30, 2019
  13. Jan 17, 2019
  14. Sep 27, 2018
  15. Sep 21, 2018
  16. Aug 10, 2018
  17. Jul 27, 2018
  18. Jul 20, 2018
  19. Jul 17, 2018
  20. Jul 13, 2018
  21. Jul 09, 2018
  22. Jul 04, 2018
  23. Jun 22, 2018
  24. Jun 14, 2018
  25. Jun 05, 2018
  26. May 29, 2018
  27. 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
    • Richard van der Hoff's avatar
      Fix incorrect reference to StringIO · e482f8cd
      Richard van der Hoff authored
      This was introduced in 4f2f5171
      e482f8cd
  28. Apr 22, 2018
  29. Apr 15, 2018
  30. Apr 05, 2018
  31. Jan 18, 2018
  32. Jan 17, 2018
    • Erik Johnston's avatar
      Add decent impl of a FileConsumer · bc67e7d2
      Erik Johnston authored
      Twisted core doesn't have a general purpose one, so we need to write one
      ourselves.
      
      Features:
      - All writing happens in background thread
      - Supports both push and pull producers
      - Push producers get paused if the consumer falls behind
      bc67e7d2
  33. Jan 16, 2018
    • Richard van der Hoff's avatar
      Optimise LoggingContext creation and copying · 44a49841
      Richard van der Hoff authored
      It turns out that the only thing we use the __dict__ of LoggingContext for is
      `request`, and given we create lots of LoggingContexts and then copy them every
      time we do a db transaction or log line, using the __dict__ seems a bit
      redundant. Let's try to optimise things by making the request attribute
      explicit.
      44a49841
Loading