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 18:58:24 UTC

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

     [ https://issues.apache.org/jira/browse/QPID-5865?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Stitcher resolved QPID-5865.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 0.29

> The client and broker heartbeat code can get confused 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
>             Fix For: 0.29
>
>
> 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