You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Subtle... The times were held in the ModbusTCP class. When a request was processed in the worker task, another could have been put on the queue in the meantime, changing the times again.
Fix: have a new TargetHost struct in the requests, that holds host, port, timeout and interval for the very request. handleConnection and receive have to look at these request-local values rather than at those of the ModbusTCP instance.
Sometimes a request is issued with dedicated timeout and same host interval times, but different times are used.
The text was updated successfully, but these errors were encountered: