1. 13 Jun, 2018 1 commit
  2. 30 May, 2018 1 commit
    • Marek Vavruša's avatar
      daemon: allow per-request variables in Lua · 14de9110
      Marek Vavruša authored
      The handlers in Lua can now store per-request variables that are automatically
      GC'd when the request is finished. This is useful for stateful modules,
      such as DNS64 that uses internal option flags for state tracking.
      
      The layers can now get a variable table like so:
      
      ```
      local vars = kres.request_t(r):vars()
      vars.hello = true
      ```
      
      The variables are persisted between different layers for each request.
      14de9110
  3. 09 May, 2018 3 commits
  4. 27 Apr, 2018 1 commit
  5. 23 Apr, 2018 4 commits
  6. 19 Apr, 2018 1 commit
  7. 18 Apr, 2018 2 commits
  8. 14 Apr, 2018 1 commit
    • Marek Vavruša's avatar
      worker: fixed infinite loop on send failure · 90f72d63
      Marek Vavruša authored
      The problem here is when qr_task_send() returns an error, the
      following error handler will attempt to cancel all tasks that were
      started on the same connection, but that will only work for the first
      task (which is finished), the qr_task_on_send() will have no effect
      on tasks in progress as the passed handle is NULL, and the task->finished
      is false, thus looping infinitely.
      
      The solution here is to let the rest of the tasks complete, even though
      sending answer back will fail (which is fine).
      90f72d63
  9. 13 Apr, 2018 5 commits
  10. 28 Mar, 2018 4 commits
  11. 26 Mar, 2018 1 commit
  12. 01 Mar, 2018 1 commit
    • Vladimír Čunát's avatar
      map_t, set_t: unify memory allocation to mm_* · f821e688
      Vladimír Čunát authored
      We use the knot style everywhere else; this was very similar and yet
      different, so really annoying to me.  In the long term we might better
      migrate to qp-tries from knot, but the API differs, so it's delayed...
      f821e688
  13. 08 Feb, 2018 4 commits
  14. 31 Jan, 2018 1 commit
  15. 29 Jan, 2018 1 commit
  16. 23 Jan, 2018 1 commit
    • Vladimír Čunát's avatar
      nitpicks from review of !405: query-trace · f705c82a
      Vladimír Čunát authored
      The deckard change was probably unintentional, so I reverted that.
      The only real mistake I found was `sizeof(128)`, though the effect was
      just unnecessary reallocations.
      
      On the whole I really like it.  Verbose logging might get slightly
      slower, due to increased amount of string allocation and copying,
      but it does seem worth it, at least until we can prove otherwise.
      I didn't look much into http module changes, etc.
      f705c82a
  17. 22 Jan, 2018 2 commits
  18. 19 Jan, 2018 1 commit
  19. 18 Jan, 2018 2 commits
  20. 12 Jan, 2018 3 commits