mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 09:20:01 -04:00
Do not reuse shared TCP dispatches for zone transfers
Zone transfers (XFRIN) need a dedicated TCP connection because they are long-lived and stream the entire zone.
This commit is contained in:
parent
3e364aec2b
commit
6e78094ebd
1 changed files with 3 additions and 1 deletions
|
|
@ -1286,7 +1286,9 @@ dns_dispatch_createtcp(dns_dispatchmgr_t *mgr, const isc_sockaddr_t *localaddr,
|
|||
|
||||
isc_result_t result;
|
||||
|
||||
if ((options & DNS_DISPATCHOPT_FIXEDID) == 0) {
|
||||
if ((options & DNS_DISPATCHOPT_FIXEDID) == 0 &&
|
||||
disptype != DNS_DISPATCHTYPE_XFRIN)
|
||||
{
|
||||
result = dispatch_gettcp(mgr, localaddr, destaddr, transport,
|
||||
disptype, dispp);
|
||||
if (result == ISC_R_SUCCESS) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue