Close oldest secure channels without session before reaching maximum
Description
Mechanism of part 4 §5.5.2 (v1.03) shall be implemented:
The Server shall close the oldest SecureChannel that has no Session assigned before reaching the maximum number of supported SecureChannels.
Analysis
Once we reached a level of secure channels opened approaching the maximum number of secure channels allowed, on each new secure channel connected we evaluate the already connected SC to find the oldest without session . If there is one we close it.
Details
- Activation of the SC closure evaluation is done on a new SC connection when 3/4 of maximum number is reached
- We define the number of secure channel to be the maximum configured + 1 to allow re-evaluation of the criteria since it is triggered only on new connection. The last connection shall be closed if there is no new available slot freed.