Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
uds: Prevent unintentional announce message timeouts.
During the configuration rework, the announce span was wrongly converted into a hard coded macro. In addition, the announceReceiptTimeout option inadvertently became non-zero for the UDS port. As a result, the UDS port sets a useless announce message timer, causing the code to close and reopen the UDS port every few seconds. This bug has an interesting history. It was first reported and fixed in commit f36af8e ("uds: disable the accidentally enabled announce timer."). That very fix was wrongly removed in commit 54f4506 ("port: change 'announce_span' into a macro."). Because of various code changes, this bad commit cannot be simply reverted now. This patch re-introduces the 'announce_span' variable and clears both it and 'announceReceiptTimeout' for the UDS port, effectively disabling the announce message timer. Signed-off-by: Richard Cochran <[email protected]>