Przeglądaj źródła

don't use high bit of interest handles; reserved for interests set by servers

Darren Ranalli 20 lat temu
rodzic
commit
58c22b71b0
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      direct/src/distributed/DoInterestManager.py

+ 2 - 1
direct/src/distributed/DoInterestManager.py

@@ -41,7 +41,8 @@ class DoInterestManager(DirectObject.DirectObject):
     # 'handle' is a number that represents a single interest set that the
     # client has requested; the interest set may be modified
     _HandleSerialNum = 0
-    _HandleMask = 0xFFFF
+    # high bit is reserved for server interests
+    _HandleMask = 0x7FFF
 
     # 'scope' refers to a single request to change an interest set
     _ScopeIdSerialNum = 100