mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 05:29:59 -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.
(cherry picked from commit 6e78094ebd)
This commit is contained in:
parent
4f54328eaf
commit
abe201bac3
1 changed files with 3 additions and 1 deletions
|
|
@ -1302,7 +1302,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