1
0
mirror of https://github.com/FreeOpcUa/opcua-asyncio synced 2025-10-29 17:07:18 +08:00
Files
opcua-asyncio/asyncua
Mattis Voss cacd6a0c35 Replace time.time() with time.monotonic() in asyncua core modules
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.
2025-08-02 09:52:12 +02:00
..
2025-04-08 12:50:40 +02:00
2024-10-24 10:11:12 +02:00
2024-12-04 13:55:40 +01:00
2025-03-31 16:34:50 +02:00