Skip to content
Snippets Groups Projects
  1. Mar 20, 2019
  2. Mar 18, 2019
  3. Mar 13, 2019
  4. Feb 11, 2019
  5. Feb 01, 2019
  6. Jan 31, 2019
  7. Jan 30, 2019
  8. Jan 29, 2019
  9. Jan 28, 2019
    • Richard van der Hoff's avatar
      Handle IP literals explicitly · 0fd5b3b5
      Richard van der Hoff authored
      We don't want to be doing .well-known lookups on these guys.
      0fd5b3b5
    • Richard van der Hoff's avatar
      Fix idna and ipv6 literal handling in MatrixFederationAgent (#4487) · d8400191
      Richard van der Hoff authored
      Turns out that the library does a better job of parsing URIs than our
      reinvented wheel. Who knew.
      
      There are two things going on here. The first is that, unlike
      parse_server_name, URI.fromBytes will strip off square brackets from IPv6
      literals, which means that it is valid input to ClientTLSOptionsFactory and
      HostnameEndpoint.
      
      The second is that we stay in `bytes` throughout (except for the argument to
      ClientTLSOptionsFactory), which avoids the weirdness of (sometimes) ending up
      with idna-encoded values being held in `unicode` variables. TBH it probably
      would have been ok but it made the tests fragile.
      Unverified
      d8400191
  10. Jan 25, 2019
  11. Jan 24, 2019
  12. Jan 22, 2019
  13. Jan 18, 2019
  14. Jan 08, 2019
    • Erik Johnston's avatar
      Refactor request sending to have better excpetions (#4358) · b970cb0e
      Erik Johnston authored
      * Correctly retry and back off if we get a HTTPerror response
      
      * Refactor request sending to have better excpetions
      
      MatrixFederationHttpClient blindly reraised exceptions to the caller
      without differentiating "expected" failures (e.g. connection timeouts
      etc) versus more severe problems (e.g. programming errors).
      
      This commit adds a RequestSendFailed exception that is raised when
      "expected" failures happen, allowing the TransactionQueue to log them as
      warnings while allowing us to log other exceptions as actual exceptions.
      b970cb0e
  15. Sep 24, 2018
  16. Sep 18, 2018
    • Richard van der Hoff's avatar
      Refactor matrixfederationclient to fix logging (#3906) · 31c15dcb
      Richard van der Hoff authored
      We want to wait until we have read the response body before we log the request
      as complete, otherwise a confusing thing happens where the request appears to
      have completed, but we later fail it.
      
      To do this, we factor the salient details of a request out to a separate
      object, which can then keep track of the txn_id, so that it can be logged.
      Unverified
      31c15dcb
  17. Sep 13, 2018
  18. Aug 10, 2018
  19. Jul 09, 2018
  20. Jul 04, 2018
    • Richard van der Hoff's avatar
      More server_name validation · 546bc9e2
      Richard van der Hoff authored
      We need to do a bit more validation when we get a server name, but don't want
      to be re-doing it all over the shop, so factor out a separate
      parse_and_validate_server_name, and do the extra validation.
      
      Also, use it to verify the server name in the config file.
      546bc9e2
  21. Jul 03, 2018
Loading