You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ch...@apache.org on 2016/04/06 23:29:59 UTC

qpid-dispatch git commit: DISPATCH-257: Convert policy maxSessions number into AMQP Open channel-max value

Repository: qpid-dispatch
Updated Branches:
  refs/heads/master 9e4ec7d49 -> d7e9b161b


DISPATCH-257: Convert policy maxSessions number into AMQP Open channel-max value


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/d7e9b161
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/d7e9b161
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/d7e9b161

Branch: refs/heads/master
Commit: d7e9b161b5e26fa523ff33d78766effacbb1a3b4
Parents: 9e4ec7d
Author: Chuck Rolke <cr...@redhat.com>
Authored: Wed Apr 6 17:29:43 2016 -0400
Committer: Chuck Rolke <cr...@redhat.com>
Committed: Wed Apr 6 17:29:43 2016 -0400

----------------------------------------------------------------------
 src/policy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/d7e9b161/src/policy.c
----------------------------------------------------------------------
diff --git a/src/policy.c b/src/policy.c
index 4d63753..8196ab4 100644
--- a/src/policy.c
+++ b/src/policy.c
@@ -722,7 +722,7 @@ void qd_policy_amqp_open(void *context, bool discard)
                 if (qd_conn->policy_settings->maxFrameSize > 0)
                     pn_transport_set_max_frame(pn_trans, qd_conn->policy_settings->maxFrameSize);
                 if (qd_conn->policy_settings->maxSessions > 0)
-                    pn_transport_set_channel_max(pn_trans, qd_conn->policy_settings->maxSessions);
+                    pn_transport_set_channel_max(pn_trans, qd_conn->policy_settings->maxSessions - 1);
             } else {
                 // This connection is denied by policy.
                 connection_allowed = false;


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org