forked from collectd/collectd
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix modbus segfault / New strategy for connecting
The previous implementation had a reconnection loop which should not really be necessary. Idea tried here is to check if connection is alive, and establish it if not. Change was begun because previously connection would only be attempted as a retry, so on first pass a NULL was handed to libmodbus which caused segmentation faults reproducibly.
- Loading branch information
Showing
1 changed file
with
39 additions
and
62 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
could you explain this comparison to me please?