Skip to content
Snippets Groups Projects
  1. Nov 24, 2016
  2. Nov 14, 2016
    • Vladimír Čunát's avatar
      lua: embed bytecode instead of stripped source · 64f80706
      Vladimír Čunát authored
      It seems a bit cleaner, though impact on size and load speed should not
      be noticeable.  We simply install most of the lua code, as before, and I
      assume that we *do* want to keep that visibility, at least by default.
      Suggested on !57.
      64f80706
  3. Nov 13, 2016
  4. Nov 12, 2016
  5. Nov 10, 2016
  6. Nov 08, 2016
    • Vladimír Čunát's avatar
      lua ffi bindings: fix incorrect structs · 36ca5eed
      Vladimír Čunát authored
      Some structures have changed but lua was still using the old ABI.
      I think no our lua code used the fields misplaced due to this,
      except an example in documentation.
      
      I didn't check much of the ABI in there.  I wish I knew some
      (half-)automatic way how to do that.
      36ca5eed
    • Vladimír Čunát's avatar
      layer: refactor and better describe the API · cc47973e
      Vladimír Čunát authored
      - The API and ABI for modules changes slightly (details below).
        KR_MODULE_API is bumped to avoid loading incompatible code.
        We have bumped libkres ABIVER since the last release 1.1.1,
        so leaving that one intact.
      
      - Make KR_STATE_YIELD not reuse 0 value anymore.
        It's easy to e.g. return kr_ok() by mistake.
      - struct kr_layer_t:
        * ::mm was unused, uninitialized, etc.
        * Make ::state an int, as it was everywhere else.
        * void *data was ugly and always containing struct kr_request *
      - struct kr_layer_api:
        * Drop the void* parameter from ::begin, as it was only used
          for the request which is available as ctx->req anyway
          (formerly ctx->data).
        * Drop ::fail.  It wasn't even called.  Modules can watch for
          KR_STATE_FAIL in ::finish.
      - Document the apparent meaning of the layer interface, deduced mainly
        from the way it's used in the code.  Caveats:
        * enum knot_layer_state handling seems to assume that it holds exactly
          one of the possibilities at a time.  The cookie module does NOT
          follow that (intentionally), apparently depending on the exact
          implementation of the handling at that moment.  It feels fragile.
        * I was unable to deduce a plausible description of when ::reset is
          called.  It's practically unused in modules, too.
      cc47973e
    • Vladimír Čunát's avatar
      layer: rename knot_ identifiers that are private now · 4ad98bff
      Vladimír Čunát authored
      It causes lots of line changes, but it would be confusing to keep the
      current state over long term.
      4ad98bff
  7. Nov 02, 2016
  8. Oct 24, 2016
  9. Oct 21, 2016
  10. Oct 20, 2016
  11. Oct 19, 2016
  12. Oct 18, 2016
  13. Oct 11, 2016
  14. Oct 07, 2016
  15. Sep 30, 2016
  16. Sep 27, 2016
  17. Sep 08, 2016
  18. Sep 07, 2016
    • Vladimír Čunát's avatar
      net.listen: make it more flexible · cfef5357
      Vladimír Čunát authored
      As noted in #94, it feels natural to call it like:
      ``net.listen({net.lo, '192.168.1.1'})``
      Also, minor fixes were done in that function and corresponding docs.
      cfef5357
  19. Sep 05, 2016
  20. Aug 25, 2016
  21. Aug 24, 2016
    • Ondřej Surý's avatar
      Reuse packet_source address when retrying over TCP. This prevents · 59009f21
      Ondřej Surý authored
      timeouts over TCP when <n> first nameservers timeout over UDP as
      previously the TCP would connect again to the first and only the
      first nameserver in task->addrlist.
      
      This would need to be ultimately fixed in TCP Fast Retransmit.
      59009f21
    • Marek Vavruša's avatar
      lib/resolve: track rtt of all tried servers · d5f3f4e2
      Marek Vavruša authored
      when doing fast retransmit, each address may be
      contacted 1-N times, but previously only cumulative
      RTT was tracked for the NS that sent the answer.
      
      now the approximate query start time is subtracted
      from cumulative RTT to give an idea how long it
      took since the query was actually sent, and all
      the NSs that didn't respond within their retransmit
      windows are penalised too
      d5f3f4e2
  22. Aug 23, 2016
  23. Aug 15, 2016
  24. Aug 11, 2016
Loading