diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2022-01-01 17:49:27 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2022-01-01 17:49:27 +0000 |
commit | 99151c49061b808ffe954ebcb903efcc802086f0 (patch) | |
tree | cd8cbe2b804cc202f2ced451dfc30e0bc2c0da8e /contrib/librdns/dns_private.h | |
parent | f4a243daac590cc1e4db686a173795eb461b7205 (diff) | |
download | rspamd-99151c49061b808ffe954ebcb903efcc802086f0.tar.gz rspamd-99151c49061b808ffe954ebcb903efcc802086f0.zip |
[Project] Rdns: Initial support of TCP IO channels
Diffstat (limited to 'contrib/librdns/dns_private.h')
-rw-r--r-- | contrib/librdns/dns_private.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/contrib/librdns/dns_private.h b/contrib/librdns/dns_private.h index f59fa2719..4429552bc 100644 --- a/contrib/librdns/dns_private.h +++ b/contrib/librdns/dns_private.h @@ -34,6 +34,7 @@ static const int dns_port = 53; static const int default_io_cnt = 8; +static const int default_tcp_io_cnt = 2; #define UDP_PACKET_SIZE (4096 * 2) @@ -51,8 +52,10 @@ struct rdns_server { char *name; unsigned int port; unsigned int io_cnt; + unsigned int tcp_io_cnt; struct rdns_io_channel **io_channels; + struct rdns_io_channel **tcp_io_channels; void *ups_elt; upstream_entry_t up; }; |