mirror of
https://github.com/FreeOpcUa/opcua-asyncio
synced 2025-10-29 17:07:18 +08:00
The library currently uses time.time() for timing in multiple places, which causes problems when the system clock changes (e.g. manual adjustments). time.monotonic() offers a monotonic clock unaffected by system time changes, making it more reliable for measuring time intervals and timeouts. This commit updates all occurrences of time.time() to time.monotonic() in: - asyncua/crypto/security_policies.py - asyncua/server/internal_subscription.py - asyncua/server/uaprocessor.py - asyncua/client/ha/reconciliator.py Addresses issues reported in https://github.com/FreeOpcUa/opcua-asyncio/issues/1848. Tested with existing test suite. Two tests fail on master as well, unrelated to this change.