Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-6445

Qpid python client hangs when message with routing key longer than 255 is sent (mutual recursion)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.32
    • qpid-python-1.35.0
    • Python Client
    • None

    Description

      Issue originally found by Petr Matousek

      When producing a message with a routing key longer than 255 characters, the Qpid python client hangs / spins indefinitely. There is seen mutual recursion around check_error/sync/close in the endpoints.py that leads to memory allocation failure.

      In the previous python-qpid versions following exception were reported: CodecException: Cannot encode 256 as uint8

      Steps to Reproduce:
      1. ./spout "amq.fanout/$(printf 'X%.0s'

      {1..256}

      )"
      2. spout execution never ends

      Actual results:
      The sender execution never ends when subject longer that 255 characters is used.

      Expected results:
      Encoding exception reported.

      Attachments

        1. qpid6445.patch.txt
          0.5 kB
          Ernest Allen

        Issue Links

          Activity

            People

              eallen Ernest Allen
              kgiusti Ken Giusti
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: