forked from COVESA/vsomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reapply netlink retries (COVESA#591)
* Retry failed netlink operations The stack sends three requests to the kernel using the netlink socket. If the kernel is e.g. busy at this point, netlink will respond with a EBUSY error value. The current code does not handle these errors gracefully, but instead silently ignores them. This can lead to vsomeip stack being stalled, and not starting certain services, e.g. service discovery. This patch helps fix these issues by sending a retry of the messages that fail. * Limit netlink retries to 3, improve error logging Only log error after retries exhausted and fix error message output, as strerror takes positive errno. --------- Co-authored-by: Philip Werner <[email protected]>
- Loading branch information
Showing
4 changed files
with
71 additions
and
12 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
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