Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-336

pn_messenger_put does not clear PN_OVERFLOW error after expanding its buffer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • proton-0.3
    • proton-0.5
    • proton-c
    • None

    Description

      In pn_messenger_put, the buffer is initialised to an array of 1024 bytes. It then tries to encode the message and if it won't fit, a PN_OVERFLOW error occurs (against the message). The buffer is then doubled in size and it retries encoding. However, the PN_OVERFLOW error is not cleared. This means that after pn_messenger_put returns successfully, calling pn_message_errno will report that a PN_OVERFLOW error occurred. The error message, unhelpfully, is "data error: (null)".

      Attachments

        Activity

          People

            rhs Rafael H. Schloming
            rjpercival Rob Percival
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: