BIND 10 trac2025_2, updated. 1b235c7827500aace4402a601b5110638214e028 [2025] Reconnect after getting SOA for the actual xfrin
BIND 10 source code commits
bind10-changes at lists.isc.org
Thu Jun 21 21:30:01 UTC 2012
The branch, trac2025_2 has been updated
via 1b235c7827500aace4402a601b5110638214e028 (commit)
from 8e376a021e24671fb9818dd58ff5c1157286b990 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 1b235c7827500aace4402a601b5110638214e028
Author: Mukund Sivaraman <muks at isc.org>
Date: Fri Jun 22 02:53:45 2012 +0530
[2025] Reconnect after getting SOA for the actual xfrin
From looking at packet capture, it seems that a close on the socket is
happening after the SOA record is returned. So this patch simply
reconnects after _check_soa_serial(). This fixes the xfrin after notify
issue.
-----------------------------------------------------------------------
Summary of changes:
src/bin/xfrin/xfrin.py.in | 4 ++++
1 file changed, 4 insertions(+)
-----------------------------------------------------------------------
diff --git a/src/bin/xfrin/xfrin.py.in b/src/bin/xfrin/xfrin.py.in
index 652f870..1f04bee 100755
--- a/src/bin/xfrin/xfrin.py.in
+++ b/src/bin/xfrin/xfrin.py.in
@@ -889,6 +889,10 @@ class XfrinConnection(asyncore.dispatcher):
req_str = 'IXFR' if request_type == RRType.IXFR() else 'AXFR'
if check_soa:
self._check_soa_serial()
+ self.close()
+ self.init_socket()
+ if not self.connect_to_master():
+ raise XfrinException('Unable to reconnect to master')
logger.info(XFRIN_XFR_TRANSFER_STARTED, req_str, self.zone_str())
self._send_query(self._request_type)
More information about the bind10-changes
mailing list