diff options
author | Frantisek Tobias <frantisek.tobias@nic.cz> | 2024-09-30 08:01:49 +0200 |
---|---|---|
committer | Vladimír Čunát <vladimir.cunat@nic.cz> | 2024-09-30 09:50:09 +0200 |
commit | 82e1d59687d1b9f291e902763456f0102d937469 (patch) | |
tree | 13000871f359ab8f239d369d8bcdf875b9a6e8dd /daemon/session2.c | |
parent | Merge !1617: daemon/session2: avoid incorrectly generated errors (diff) | |
download | knot-resolver-82e1d59687d1b9f291e902763456f0102d937469.tar.xz knot-resolver-82e1d59687d1b9f291e902763456f0102d937469.zip |
daemon udp connect: use connected udp communication
Diffstat (limited to 'daemon/session2.c')
-rw-r--r-- | daemon/session2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/daemon/session2.c b/daemon/session2.c index 91aeb829..683b2e61 100644 --- a/daemon/session2.c +++ b/daemon/session2.c @@ -1447,8 +1447,8 @@ static int session2_transport_pushv(struct session2 *s, ctx); return kr_ok(); } else { - int ret = uv_udp_try_send((uv_udp_t*)handle, - (uv_buf_t *)iov, iovcnt, comm->comm_addr); + int ret = uv_udp_try_send((uv_udp_t*)handle, (uv_buf_t *)iov, iovcnt, + the_network->enable_connect_udp ? NULL : comm->comm_addr); if (ret > 0) // equals buffer size, only confuses us ret = 0; if (ret == UV_EAGAIN) { |