-
-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make invokeId thread safe (svn@421)
If you had one BACnetClient instance and you sent multiple requests in parallel, it was possible that the responses could get mixed up due to using same invokeId and/or not checking the sender address.
- Loading branch information
Showing
2 changed files
with
38 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Beware I got some false positive "addresses unequal" on some Schneider BACnet Devices.
For some reason adr.RoutedSource != _address.RoutedSource even though it is the same address. Removing the condition fixed my problem.
I only observed this behavior on some specific Schneider Device. I do not know whether the device or the library is to blame.