Uploaded image for project: 'Qpid Dispatch'
  1. Qpid Dispatch
  2. DISPATCH-1277

max-frame-size defaults to 2147483647 if it is not specified in the policy

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.0
    • Fix Version/s: 1.6.0
    • Component/s: Container
    • Labels:
      None

      Description

      Start a router with the following policy

      ##
      ## Licensed to the Apache Software Foundation (ASF) under one
      ## or more contributor license agreements.  See the NOTICE file
      ## distributed with this work for additional information
      ## regarding copyright ownership.  The ASF licenses this file
      ## to you under the Apache License, Version 2.0 (the
      ## "License"); you may not use this file except in compliance
      ## with the License.  You may obtain a copy of the License at
      ##
      ##   http://www.apache.org/licenses/LICENSE-2.0
      ##
      ## Unless required by applicable law or agreed to in writing,
      ## software distributed under the License is distributed on an
      ## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
      ## KIND, either express or implied.  See the License for the
      ## specific language governing permissions and limitations
      ## under the License
      ##
      [
          ["vhost", {
              "hostname": "$default",
              "allowUnknownUser": true,
              "groups" : {
                      "$default": {
                          "remoteHosts": "*",
                          "allowDynamicSource": true,
                          "allowAnonymousSender": true,
                          "allowAdminStatusUpdate": true,
                          "targets": "*",
                          "sources": "*"
                      }
                   }
               }
          ]
      ]

      Notice that the above policy does not specify a maxFrameSize.

      According to the router schema documentation seen here - https://github.com/apache/qpid-dispatch/blob/master/python/qpid_dispatch/management/qdrouter.json#L1815 - the maxFrameSize must default to 16k

      "maxFrameSize": {
      
          "type": "integer",
          "description": "The largest frame, in bytes, that may be sent on this   connection. Non-zero policy values overwrite values specified for a listener object (AMQP Open, max-frame-size).",
          "default": 16384,
          "required": false,
          "create": true
      
      },

      Instead it is defaulting to 2147483647 as seen here -

      [0x5650918bfc90]:0 <- @open(16) [container-id="QDR", max-frame-size=2147483647, channel-max=32767, idle-time-out=60000, offered-capabilities=:"ANONYMOUS-RELAY", properties={:product="qpid-dispatch-router", :version="1.6.0-SNAPSHOT", :"qd.conn-id"=6}]

        Attachments

          Activity

            People

            • Assignee:
              gmurthy Ganesh Murthy
              Reporter:
              gmurthy Ganesh Murthy
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: