BIND 10 #3123: Select wrapper & mutex around ModuleCCSession

BIND 10 Development do-not-reply at isc.org
Wed Aug 28 09:15:16 UTC 2013


#3123: Select wrapper & mutex around ModuleCCSession
-------------------------------------+-------------------------------------
                   Reporter:         |                 Owner:
  vorner                             |                Status:  new
                       Type:  task   |             Milestone:  New Tasks
                   Priority:         |              Keywords:
  medium                             |             Sensitive:  0
                  Component:  shmem  |           Sub-Project:  DNS
  manager                            |  Estimated Difficulty:  0
               CVSS Scoring:         |           Total Hours:  0
            Defect Severity:  N/A    |
Feature Depending on Ticket:         |
  Simplified memmgr                  |
        Add Hours to Ticket:  0      |
                  Internal?:  0      |
-------------------------------------+-------------------------------------
 Implement the usual work-around wrapper with select around check_command
 for module CC session in the memory manager. Also, include a mutex around
 the command (there's one inside, but the other thread will need to hold
 the module CC session for longer than just one command when synchronizing
 and it will not want the main thread to interfere).

 Something like:

 {{{#!python
 while True:
         if fd in select([fd], [], [])[0]:
                 with mutex:
                         module_cc_session.check_command(blocking=False)
 }}}

-- 
Ticket URL: <http://bind10.isc.org/ticket/3123>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list