Qpid
  1. Qpid
  2. QPID-3620

time conversions fail on solaris

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.15
    • Fix Version/s: 0.16
    • Component/s: C++ Broker, C++ Client
    • Labels:
      None
    • Environment:

      Solaris sparc 64

      Description

      Condition::wait(Mutex&, const AbsTime& absoluteTime) fails for far future time during cast/truncation from 64 bit int to posix timespec.tv_sec. The time is actually in the past and the wait times out instantly.

        Activity

        Hide
        Cliff Jansen added a comment -

        proposed fix. do not assign value "larger" than std::numeric_limits<time_t>::max()

        Show
        Cliff Jansen added a comment - proposed fix. do not assign value "larger" than std::numeric_limits<time_t>::max()
        Hide
        Cliff Jansen added a comment -

        fixed. r1242406

        Show
        Cliff Jansen added a comment - fixed. r1242406

          People

          • Assignee:
            Cliff Jansen
            Reporter:
            Cliff Jansen
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development