3.3.3.5.5 Limits of Presentation Contexts Negotiated

The server MUST restrict the number of presentation contexts to 4,000 * NumberOfRegisteredInterfaces.

The server MUST update the value of NumberOfRegisteredInterfaces each time a new interface is registered or unregistered. Higher-level protocols can register or unregister a new interface by using the abstract interfaces described in Appendix C. When running on the Windows RPC implementation, higher-level protocols use the RpcServerRegisterIf (see [MSDN-RpcServerRegisterIf]) and RpcServerUnregisterIf (see [MSDN-RpcServerUnregisterIf]) APIs.

If a client attempts to negotiate a presentation context over the limit, the server MUST reject the negotiation and reply with a bind_nak with provider_reject_reason set to local_limit_exceeded_reject 2 (0x2).