Uploaded image for project: 'Etch'
  1. Etch
  2. ETCH-25

DefaultDeliveryService ends call with mb.CloseDelivery() and it should end it with mb.CloseRead()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0.0, 1.0.1
    • 1.0.2
    • None

    Description

      when done reading the mailbox, the right method to call is CloseRead(). somehow the code actually calls CloseDelivery(), a method used to shutdown the writing side of the mailbox. CloseRead() calls CloseDelivery() first off, but then takes the additional steps of redelivering any messages left in the mailbox.

      The distinction is rather fine, and this bug was found by reading the source code. There are certain ways you could exercise this bug, but it would be very rare and not have any real impact. So, it isn't an emergency to fix it, but it is also a relatively benign fix. I've already made the change in my tree and tested it. The patch is attached.

      Attachments

        Activity

          People

            sccomer Robert Scott Comer
            sccomer Robert Scott Comer
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: