BIND 10 trac802, updated. 51f3cb54492ef02e4951afb15a9c40ba0cdff4ce [802] Interface definition

BIND 10 source code commits bind10-changes at lists.isc.org
Fri Nov 25 08:46:37 UTC 2011


The branch, trac802 has been updated
       via  51f3cb54492ef02e4951afb15a9c40ba0cdff4ce (commit)
       via  51c9278d000daee776c5e12456d8c4ea60ff5f21 (commit)
      from  0dedcdb128646fdbf37be96f91076adda2f37c95 (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 51f3cb54492ef02e4951afb15a9c40ba0cdff4ce
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date:   Fri Nov 25 09:46:15 2011 +0100

    [802] Interface definition

commit 51c9278d000daee776c5e12456d8c4ea60ff5f21
Author: Michal 'vorner' Vaner <michal.vaner at nic.cz>
Date:   Fri Nov 25 09:38:43 2011 +0100

    [802] Docstring cleanups

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

Summary of changes:
 src/bin/bind10/bind10_src.py.in           |   16 ++++++++++++++++
 src/lib/python/isc/bind10/socket_cache.py |    8 ++++----
 2 files changed, 20 insertions(+), 4 deletions(-)

-----------------------------------------------------------------------
diff --git a/src/bin/bind10/bind10_src.py.in b/src/bin/bind10/bind10_src.py.in
index bf6079e..063e31c 100755
--- a/src/bin/bind10/bind10_src.py.in
+++ b/src/bin/bind10/bind10_src.py.in
@@ -812,6 +812,22 @@ class BoB:
 
         return next_restart_time
 
+    def socket_request_handler(self, token, unix_socket):
+        """
+        This function handles a token that comes over a unix_domain socket.
+        The function looks into the _socket_cache and sends the socket
+        identified by the tocken back over the unix_socket.
+        """
+        pass
+
+    def socket_consumer_dead(self, unix_socket):
+        """
+        This function handles when a unix_socket closes. This means all
+        sockets sent to it are to be considered closed. This function signals
+        so to the _socket_cache.
+        """
+        pass
+
 # global variables, needed for signal handlers
 options = None
 boss_of_bind = None
diff --git a/src/lib/python/isc/bind10/socket_cache.py b/src/lib/python/isc/bind10/socket_cache.py
index 8ceeef1..d499cbd 100644
--- a/src/lib/python/isc/bind10/socket_cache.py
+++ b/src/lib/python/isc/bind10/socket_cache.py
@@ -21,15 +21,15 @@ class SocketError(Exception):
     """
     Exception raised when the socket creator is unable to create requested
     socket. Possible reasons might be the address it should be bound to
-    is already taken, the permissions are unsufficient, the address family
+    is already taken, the permissions are insufficient, the address family
     is not supported on this computer and many more.
     """
     pass
 
 class ShareError(Exception):
     """
-    Such socket is already taken by other component and the sharing
-    parameters doesn't allow sharing with the new request.
+    The requested socket is already taken by other component and the sharing
+    parameters don't allow sharing with the new request.
     """
     pass
 
@@ -78,7 +78,7 @@ class Cache:
         be set), it will be removed and the token is invalid.
 
         It can fail in various ways. Explicitly listed exceptions are:
-        - SockeError: this one is thrown if the socket creator couldn't provide
+        - SocketError: this one is thrown if the socket creator couldn't provide
           the socket and it is not yet cached (it belongs to other application,
           for example).
         - ShareError: the socket is already in the cache, but it can't be




More information about the bind10-changes mailing list