Uploaded image for project: 'Spring.NET'
  1. Spring.NET
  2. SPRNET-1253

NmsTemplate: wrong timeout units in receive method (ticks instead of milliseconds)

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.0, 1.3.0 RC1
    • Fix Version/s: 1.3.0
    • Component/s: Spring-NET-MSG
    • Labels:
      None

      Description

      already posted: http://jira.springframework.org/browse/SPRNET-1228

      NmsTemplate: wrong timeout units in recvie method (ticks instead of milliseconds):

      there is a usage of constructor "new TimeSpan(timeout)" - it takes number of ticks but the intention was to pass there milliseconds. So different constructor for TimeSpan should be used:

      protected virtual IMessage DoReceive(ISession session, IMessageConsumer consumer)
      {
      ...
      IMessage message = (timeout > 0)
      ? consumer.Receive(new TimeSpan(timeout)) <- !!! bug
      : consumer.Receive();
      ...
      }

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mark.pollack Mark Pollack
                Reporter:
                piotr@jurga.pl Piotr Jurga
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 5m
                  5m
                  Remaining:
                  Remaining Estimate - 5m
                  5m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified