2 Replies Latest reply on Aug 18, 2009 4:52 AM by timfox

    Is DeliveryCount ignored for large messages?

    timfox

      Looking at the code, it seems to be

        • 1. Re: Is DeliveryCount ignored for large messages?
          clebert.suconic

          ServerConsumerImpl::doHandle:

          
          ...
           if (!browseOnly)
           {
          
           ..
          
          line 615 on r7450: ref.incrementDeliveryCount();
          


          ^^ This happens independently of being a large message or not.

          • 2. Re: Is DeliveryCount ignored for large messages?
            timfox

            I mean on the client side.

            Line 410, ClientConsumerImpl:

            currentChunkMessage = new ClientMessageImpl(packet.getDeliveryCount());
            


            Until I changed it yesterday it used to read:

            currentChunkMessage = new ClientMessageImpl();
            


            So the delivery count information was always zero to the client, unless you're setting it somewhere else.

            If this is the case, you should add a test.