BIND 10 #299: AXFR fails half the time

BIND 10 Development do-not-reply at isc.org
Tue Aug 10 05:05:25 UTC 2010


#299: AXFR fails half the time
-----------------------------+----------------------------------------------
      Reporter:  zzchen_pku  |        Owner:  zzchen_pku
          Type:  defect      |       Status:  new       
      Priority:  major       |    Milestone:            
     Component:  xfrout      |   Resolution:            
      Keywords:              |    Sensitive:  0         
Estimatedhours:  0.0         |        Hours:  0         
      Billable:  1           |   Totalhours:  0         
      Internal:  0           |  
-----------------------------+----------------------------------------------

Comment(by zzchen_pku):

 > I'm afraid I don't understand.  Could you provide some more specific
 details?
 Xfrout server will close the connection after a request has been
 completed, but client won't reconnect to server each time. Client will
 disconnect from server only when there is an exception raised by
 sendXfroutRequestInfo, then reconnect the next time,so AXFR fails half the
 time.
 Please find below code(auth_srv.cc):
 {{{
 344     try {
 345         if (!xfrout_connected_) {
 346             xfrout_client_.connect();
 347             xfrout_connected_ = true;
 348         }
 349         xfrout_client_.sendXfroutRequestInfo(
 350             io_message.getSocket().getNative(),
 351             io_message.getData(),
 352             io_message.getDataSize());
 353     } catch (const XfroutError& err) {
 354         if (xfrout_connected_) {
 355             // disconnect() may trigger an exception, but since we try
 it
 356             // only if we've successfully opened it, it shouldn't
 happen in
 357             // normal condition.  Should this occur, we'll propagate
 it to the
 358             // upper layer.
 359             xfrout_client_.disconnect();
 360             xfrout_connected_ = false;
 361         }
 }}}

-- 
Ticket URL: <https://bind10.isc.org/ticket/299#comment:4>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list