BIND 10 #287: revisit cc::Session establish mode

BIND 10 Development do-not-reply at isc.org
Fri Jul 9 22:49:28 UTC 2010


#287: revisit cc::Session establish mode
---------------------------------------------+------------------------------
      Reporter:  jinmei                      |        Owner:  jinmei              
          Type:  enhancement                 |       Status:  accepted            
      Priority:  major                       |    Milestone:  feature backlog item
     Component:  Inter-module communication  |   Resolution:                      
      Keywords:                              |    Sensitive:  0                   
Estimatedhours:  0                           |        Hours:  0                   
      Billable:  1                           |   Totalhours:  0                   
      Internal:  0                           |  
---------------------------------------------+------------------------------
Changes (by jinmei):

  * owner:  UnAssigned => jinmei
  * status:  new => accepted


Comment:

 One more point:

  - the current interface can easily cause rerource leak: if the app
 forgets to disconnect the session and destroys the session object, the
 underlying connection will remain open.

 This leads to the following questions: is there any reason to allow a
 session object to be constructed without opening the session?
 Also, is there any reason for allowing disconnecting and re-opening
 the sessions dynamically?  If the answer (other than we may want to
 allow it) to these questions is no, we can and should simplify the
 interface and implementation so that the session is open on
 construction, and is disconnected on destruction.  Even if the answer
 to the second question is yes, this approach still makes sense unless
 we want to allow delayed session establishment.

 (now that the issue includes how to close the session, I'm going to change
 the ticket subject accordingly)

-- 
Ticket URL: <http://bind10.isc.org/ticket/287#comment:1>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list