Uploaded image for project: 'Hot Rod Native client'
  1. Hot Rod Native client
  2. HRCPP-152

Fix lifespan and idle time types

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 6.0.2.Final
    • None
    • None

    Description

      Currently, the RemoteCache is accepting lifespan and idle time as uint64_t. Documentation states that setting these values to negative values means unlimited - but uints cannot be negative.

      The protocol specifies later that these values should be in seconds, and as unsigned 32-bit integers. However, the server will process them as signed ints. Therefore, some checks should happen on well defined place (throwing exceptions for values that cannot fit into the 31-bit range), and the conversion should be explicit (otherwise, compiler warnings occur).

      Fixing this will probably change API.

      Attachments

        Activity

          People

            ttarrant@redhat.com Tristan Tarrant
            rvansa1@redhat.com Radim Vansa (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: