1. 07 Nov, 2014 1 commit
  2. 04 Aug, 2014 1 commit
  3. 30 May, 2014 1 commit
  4. 13 May, 2014 1 commit
    • Marek Vavruša's avatar
      update: copy socket for enqueued data · 989e95f4
      Marek Vavruša authored
      protocol-agnostic response, copied socket for deferred cleanup
      The copy is needed so the TCP worker can close the socket and
      the connection is held until the UPDATE request is cleared.
      989e95f4
  5. 10 Apr, 2014 1 commit
  6. 13 Feb, 2014 1 commit
  7. 14 Oct, 2013 1 commit
  8. 10 May, 2013 1 commit
    • Marek Vavrusa's avatar
      UDP answering converted to mempool memory allocator. · 3bfdf284
      Marek Vavrusa authored
      This allows us to reuse the memory without worry about freeing.
      Flush (sort of free) is done after packet processing is finished.
      Uses generic mm context and mempool from libucw.
      
      Change-Id: Ifcc74e745797eb7f6833c74dc9ebd89743ba4358
      3bfdf284
  9. 25 Apr, 2013 1 commit
    • Marek Vavrusa's avatar
      Updated networking code. · 797d931a
      Marek Vavrusa authored
      - Simplified and decoupled I/O from processing code.
      - Single reader with multiple workers.
      - Reader is bound to specific CPU for lowest possible latency.
      - Reverted to select() instead of fdset wrapper as epoll/kqueue could
        be quite slower for a single or handful of sockets.
      - Reader I/O calls are non-blocking.
      
      General idea is:
      - Reader takes free request from a rx_queue
      - Receives data and pushes it to the tx_queue
      - Worker processes the packets, sends answers and returns the request
        to the rx_queue
      
      Semi lock-free queue is used for communication.
      This is measured to be slightly better than singlethreading, as socket
      contention could be better predicted - the reader cannot check sockets
      for new events when tx_queue is full.
      
      Change-Id: Ifc40889b355404a9e78e10d77c26cb3fc4c58386
      797d931a
  10. 25 Feb, 2013 1 commit
  11. 19 Oct, 2012 1 commit
    • Marek Vavrusa's avatar
      Unified error codes. · 31d46271
      Marek Vavrusa authored
      fixes #1772 @2.5h
      
      Conflicts:
      
      	src/knot/server/tcp-handler.c
      	src/knot/server/xfr-handler.c
      	src/knot/server/zones.c
      	src/libknot/nameserver/name-server.c
      	src/libknot/updates/xfr-in.c
      	src/tests/libknot/libknot/response_tests.c
      31d46271
  12. 12 Sep, 2012 1 commit
  13. 01 Nov, 2011 1 commit
  14. 30 Sep, 2011 1 commit
    • Marek Vavrusa's avatar
      Correct handling of AXFR/IXFR over UDP, bugfixes, code cleanup. · c060271e
      Marek Vavrusa authored
      * AXFR/UDP query is responded as FORMERR (according to BIND and RFC1034)
      * IXFR/UDP query is responded with SOA (according to RFC1995)
      * Experimental support for (A|I)XFR/UDP is implemented, but disabled.
      ** I did not encounter server supporting full IXFR/UDP nor client tool to test it.
      ** AXFR/UDP is still in state of draft and not supported, so disabled as well.
      
      refs #984
      c060271e
  15. 29 Aug, 2011 1 commit
  16. 10 Aug, 2011 1 commit
  17. 02 Aug, 2011 2 commits
  18. 11 Apr, 2011 1 commit
  19. 05 Apr, 2011 1 commit
  20. 30 Mar, 2011 1 commit
  21. 16 Mar, 2011 1 commit
    • Lubos Slovak's avatar
      Source files reorganization. · 5e48ae85
      Lubos Slovak authored
      - Sources separated according to the future compilation modules:
        - src/knot/ contains all sources related to server (compiles into
          knotc and knotd)
        - src/alloc/ contains sources of slab allocator (may be compiled
          into standalone library).
        - src/dnslib/ contains dnslib sources (may be compiled as
          standalone library).
        - src/tests/ contains unittests (compiles into unittests).
        - src/zoneparser/ contains sources of zone compiler (compiles
          into knot-zcompile).
      
      TODO: Need to refactor makefile to separate the compilation of
            these modules. However, unittests still depend on all
            modules.
      
      refs #400
      5e48ae85
  22. 28 Feb, 2011 1 commit
  23. 25 Feb, 2011 1 commit
    • Ondřej Surý's avatar
      Clean-up header file usage: · a9ad2022
      Ondřej Surý authored
      1. Include <config.h> at the top of each .c
      2. Remove "common.h" and config.h from all .h
      3. Include "common.h" at the top of user includes in each .c
      
      The common.h was used inconsistently (either it's common or not).
      a9ad2022
  24. 29 Nov, 2010 1 commit
  25. 24 Nov, 2010 2 commits
  26. 09 Nov, 2010 1 commit
  27. 25 Oct, 2010 1 commit
  28. 07 Sep, 2010 2 commits