4.19.2.2. Binding secondary sessions

The RADIUS protocol does not guarantee the delivery of the messages (since it uses UDP), consequently packages are dropped if the system is overburden. Clients and servers attempt to send messages several times; allowing secondary sessions increases reliability and decreases server load. See Section 2.2, Secondary sessions for further information.

Example 4.37. Example RadiusProxy config

The following example defines a RADIUS proxy which serves 1000 parallel requests in one thread. Packet rebuilding is turned on as well, therefore the server and client side secrets are also specified.

class MyRadiusProxy(RadiusProxy):
      def config(self):
              RadiusProxy.config(self)
              self.client_secret="secret"
              self.server_secret="secret"
              self.rebuild_packets='TRUE'
              self.secondary_mask = 0xC
              self.secondary_sessions = 1000