You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Chuck Rolke (JIRA)" <ji...@apache.org> on 2016/04/08 22:59:25 UTC
[jira] [Created] (DISPATCH-270) Specifying a maxSessions limit of 1
allows unlimited sessions
Chuck Rolke created DISPATCH-270:
------------------------------------
Summary: Specifying a maxSessions limit of 1 allows unlimited sessions
Key: DISPATCH-270
URL: https://issues.apache.org/jira/browse/DISPATCH-270
Project: Qpid Dispatch
Issue Type: Bug
Components: Policy Engine
Affects Versions: 0.6
Reporter: Chuck Rolke
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.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org