BIND 10 trac1175, updated. ca2a2abfd234cbe7fd9c820a67006feed8ae3682 [1175] - explicitly shut down the socket of the msgq before shutting down the msgq - do nothing in the shutdown method of MockMsgq for avoiding shutting down the msgq twice - replace the stop method in the shutdown method of the MyStatsHttpd with the shutdown command of stats_httpd

BIND 10 source code commits bind10-changes at lists.isc.org
Tue Sep 13 08:52:10 UTC 2011


The branch, trac1175 has been updated
       via  ca2a2abfd234cbe7fd9c820a67006feed8ae3682 (commit)
      from  6078f59be7a52823ba846b57dfdf5555a994ae01 (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 ca2a2abfd234cbe7fd9c820a67006feed8ae3682
Author: Naoki Kambe <kambe at jprs.co.jp>
Date:   Tue Sep 13 17:53:22 2011 +0900

    [1175]
     - explicitly shut down the socket of the msgq before shutting down the msgq
     - do nothing in the shutdown method of MockMsgq for avoiding shutting down the
       msgq twice
     - replace the stop method in the shutdown method of the MyStatsHttpd with the
       shutdown command of stats_httpd

-----------------------------------------------------------------------

Summary of changes:
 src/bin/stats/tests/test_utils.py |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/bin/stats/tests/test_utils.py b/src/bin/stats/tests/test_utils.py
index 20b959e..1eaf220 100644
--- a/src/bin/stats/tests/test_utils.py
+++ b/src/bin/stats/tests/test_utils.py
@@ -99,10 +99,14 @@ class MockMsgq:
         except Exception:
             pass
         finally:
+            # explicitly shut down the socket of the msgq before
+            # shutting down the msgq
+            self.msgq.listen_socket.shutdown(msgq.socket.SHUT_RDWR)
             self.msgq.shutdown()
 
     def shutdown(self):
-        self.msgq.shutdown()
+        # do nothing for avoiding shutting down the msgq twice
+        pass
 
 class MockCfgmgr:
     def __init__(self):
@@ -323,7 +327,7 @@ class MyStatsHttpd(stats_httpd.StatsHttpd):
             pass
 
     def shutdown(self):
-        self.stop()
+        self.command_handler('shutdown', None)
 
 class BaseModules:
     def __init__(self):




More information about the bind10-changes mailing list