Browse Source

updated get_socket docstring, and removed get_session(), according to review for ticket 43

git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1515 e5f2f494-b856-4b98-b285-d166d9295462
Jelte Jansen 15 years ago
parent
commit
81cae9d756
1 changed files with 5 additions and 9 deletions
  1. 5 9
      src/lib/python/isc/config/ccsession.py

+ 5 - 9
src/lib/python/isc/config/ccsession.py

@@ -158,17 +158,13 @@ class ModuleCCSession(ConfigData):
         self.__request_config()
 
     def get_socket(self):
-        """Returns the socket from the command channel session. This can
-           be used in select() loops to see if there is anything on the
-           channel. This is not strictly necessary as long as
-           check_command is called periodically."""
+        """Returns the socket from the command channel session. This
+           should *only* be used for select() loops to see if there
+           is anything on the channel. If that loop is not completely
+           time-critical, it is strongly recommended to only use
+           check_command(), and not look at the socket at all."""
         return self._session._socket
     
-    def get_session(self):
-        """Returns the command-channel session that is used, so the
-           application can use it directly."""
-        return self._session
-
     def close(self):
         """Close the session to the command channel"""
         self._session.close()