Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
0.6.0
-
None
Description
This is an issue of cascading magic numbers. Policy keeps the numbers in normal human readable form. The number is decremented when it's handed over to proton to put into channel-max.
So a policy limit of 1 gets decremented to zero when sent to proton. Proton sees a zero and sends no channel-max in the Open frame, allowing the maximum number of sessions.
A user must specify two or more for the maxSessions in order to get the expected number.
Dispatch router policy should fail when a user specifies maxSessions = 1.