]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
daemon/worker: reworked multiplexed worker
authorMarek Vavruša <marek.vavrusa@nic.cz>
Fri, 24 Apr 2015 16:31:10 +0000 (18:31 +0200)
committerMarek Vavruša <marek.vavrusa@nic.cz>
Sun, 26 Apr 2015 21:18:45 +0000 (23:18 +0200)
commitc7d6205587b4d9ecfe796a32d591ca4bebde3ca7
tree0a6fe54645b2c09530f42c388554fe79f053757d
parentfadc042d5b98d1e265d6ff54bd083ccc09202e4d
daemon/worker: reworked multiplexed worker

* each query is assigned a task
* each task contains request, some primitives and mempool
* worker can process multiple tasks at once and
  offload I/O to event loop

Not finished:

* it depends on icmp/system timeouts, #22
* tcp reads are going to be bad if the messages
  arrive fragmented #21
daemon/io.c
daemon/io.h
daemon/worker.c
daemon/worker.h
lib/resolve.c