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

Proton C++ will crash if told to run 0 threads

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • proton-c-0.18.0
    • proton-c-0.19.0
    • cpp-binding
    • None

    Description

      If you call container::run(0) - i.e. tell it to run 0 threads it will crash.

      I think the correct thing to do here is just ignore all values less than 1 and treat them as if they were 1.

      Another possibility would be to treat 0 as a "default" value - and run a "good" number of threads for the circumstances.

      Attachments

        Activity

          People

            astitcher Andrew Stitcher
            astitcher Andrew Stitcher
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: