Skip to content
Snippets Groups Projects
  1. Dec 09, 2016
  2. Dec 03, 2016
  3. Dec 02, 2016
  4. Dec 01, 2016
  5. Nov 22, 2016
  6. Nov 18, 2016
  7. Nov 14, 2016
  8. Nov 12, 2016
  9. Nov 11, 2016
  10. Nov 10, 2016
    • Kegan Dougal's avatar
      Flake8 · 8a8ad46f
      Kegan Dougal authored
      8a8ad46f
    • Kegan Dougal's avatar
      Store Promise<Response> instead of Response for HTTP API transactions · 2771447c
      Kegan Dougal authored
      This fixes a race whereby:
       - User hits an endpoint.
       - No cached transaction so executes main code.
       - User hits same endpoint.
       - No cache transaction so executes main code.
       - Main code finishes executing and caches response and returns.
       - Main code finishes executing and caches response and returns.
      
       This race is common in the wild when Synapse is struggling under load.
       This commit fixes the race by:
        - User hits an endpoint.
        - Caches the promise to execute the main code and executes main code.
        - User hits same endpoint.
        - Yields on the same promise as the first request.
        - Main code finishes executing and returns, unblocking both requests.
      2771447c
  11. Nov 09, 2016
  12. Nov 08, 2016
Loading