diff options
author | Vladimír Čunát <vladimir.cunat@nic.cz> | 2023-01-19 18:54:11 +0100 |
---|---|---|
committer | Aleš Mrázek <ales.mrazek@nic.cz> | 2023-01-26 13:06:39 +0100 |
commit | 3e28a8a64458a326b8091af2dabbe67be9203f6b (patch) | |
tree | 28738d7df15274bb28d00314d3559ffac0007a41 /daemon/worker.c | |
parent | daemon/worker: call server_selection.error() more (diff) | |
download | knot-resolver-3e28a8a64458a326b8091af2dabbe67be9203f6b.tar.xz knot-resolver-3e28a8a64458a326b8091af2dabbe67be9203f6b.zip |
daemon/io: penalize servers that close without reply
Diffstat (limited to 'daemon/worker.c')
-rw-r--r-- | daemon/worker.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/daemon/worker.c b/daemon/worker.c index c8feb16a..8b6b49e6 100644 --- a/daemon/worker.c +++ b/daemon/worker.c @@ -2111,6 +2111,11 @@ struct request_ctx *worker_task_get_request(struct qr_task *task) return task->ctx; } +struct kr_transport *worker_task_get_transport(struct qr_task *task) +{ + return task->transport; +} + struct session *worker_request_get_source_session(const struct kr_request *req) { static_assert(offsetof(struct request_ctx, req) == 0, |