]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
daemon/session2: put event handling into separate functions
authorOto Šťáva <oto.stava@nic.cz>
Thu, 4 Aug 2022 09:15:13 +0000 (11:15 +0200)
committerOto Šťáva <oto.stava@nic.cz>
Thu, 26 Jan 2023 11:56:07 +0000 (12:56 +0100)
commit8a13a2c168e2e93bc48619a83bf5b79e6e9baefc
tree293ba4a6a28fafdf41228fe44eeaf343ad2dd99d
parentea90ceaea90bbcf57daea19688abf9b492c3b3a8
daemon/session2: put event handling into separate functions

Originally, events were simply just another payload for the regular data
callbacks. That could, however, lead to problems with the control flow
of the layer iterations, e.g. when a buffer causes a layer to `_WAIT`,
but the next payload is an event instead of another buffer. This
separation should fix that problem.
daemon/io.c
daemon/session2.c
daemon/session2.h
daemon/worker.c