Skip to content
Snippets Groups Projects
  1. Sep 29, 2020
    • Andrew Morgan's avatar
      Only assert valid next_link params when provided (#8417) · 1c6b8752
      Andrew Morgan authored
      Broken in https://github.com/matrix-org/synapse/pull/8275 and has yet to be put in a release. Fixes https://github.com/matrix-org/synapse/issues/8418.
      
      `next_link` is an optional parameter. However, we were checking whether the `next_link` param was valid, even if it wasn't provided. In that case, `next_link` was `None`, which would clearly not be a valid URL.
      
      This would prevent password reset and other operations if `next_link` was not provided, and the `next_link_domain_whitelist` config option was set.
      1c6b8752
    • Richard van der Hoff's avatar
      Add metrics to track success/otherwise of replication requests (#8406) · 866c84da
      Richard van der Hoff authored
      One hope is that this might provide some insights into #3365.
      866c84da
    • Richard van der Hoff's avatar
      Fix handling of connection timeouts in outgoing http requests (#8400) · 1c262431
      Richard van der Hoff authored
      
      * Remove `on_timeout_cancel` from `timeout_deferred`
      
      The `on_timeout_cancel` param to `timeout_deferred` wasn't always called on a
      timeout (in particular if the canceller raised an exception), so it was
      unreliable. It was also only used in one place, and to be honest it's easier to
      do what it does a different way.
      
      * Fix handling of connection timeouts in outgoing http requests
      
      Turns out that if we get a timeout during connection, then a different
      exception is raised, which wasn't always handled correctly.
      
      To fix it, catch the exception in SimpleHttpClient and turn it into a
      RequestTimedOutError (which is already a documented exception).
      
      Also add a description to RequestTimedOutError so that we can see which stage
      it failed at.
      
      * Fix incorrect handling of timeouts reading federation responses
      
      This was trapping the wrong sort of TimeoutError, so was never being hit.
      
      The effect was relatively minor, but we should fix this so that it does the
      expected thing.
      
      * Fix inconsistent handling of `timeout` param between methods
      
      `get_json`, `put_json` and `delete_json` were applying a different timeout to
      the response body to `post_json`; bring them in line and test.
      
      Co-authored-by: default avatarPatrick Cloke <clokep@users.noreply.github.com>
      Co-authored-by: default avatarErik Johnston <erik@matrix.org>
      1c262431
  2. Sep 28, 2020
  3. Sep 27, 2020
  4. Sep 25, 2020
  5. Sep 24, 2020
  6. Sep 23, 2020
  7. Sep 22, 2020
Loading