You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Andrew Stitcher (JIRA)" <ji...@apache.org> on 2014/07/01 16:55:24 UTC

[jira] [Created] (QPID-5865) The client and broker heartbeat code can get confiused when the system time changes

Andrew Stitcher created QPID-5865:
-------------------------------------

             Summary: The client and broker heartbeat code can get confiused when the system time changes
                 Key: QPID-5865
                 URL: https://issues.apache.org/jira/browse/QPID-5865
             Project: Qpid
          Issue Type: Bug
          Components: C++ Broker, C++ Client
            Reporter: Andrew Stitcher
            Assignee: Andrew Stitcher


The underlying timekeeping code in C++ qpid currently uses CLOCK_REALTIME which is related to wallclock time and can go backwards and skip time forwards (either due to NTP or administrator action).

This is not ideal because it can cause false timeouts to occur based on the system time rather than elapsed time.

It would be better for most timing to be based on CLOCK_MONOTONIC which is steadily increasing time based on the system uptime. That will avoid problems due to the system time changing.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org