Do not allow stream socket retries in libkrad
Before this patch, libkrad would follow the same exact logic for all
socket types when the retries parameter was non-zero. This meant that
when connecting with SOCK_STREAM, multiple requests were sent in case
of packet drops, which, of course, cannot happen for SOCK_STREAM.
Instead, just disable retries for SOCK_STREAM sockets.
[firstname.lastname@example.org: minor wording edits]
Author: Nathaniel McCallum <email@example.com>
Committer: Greg Hudson <firstname.lastname@example.org>
src/include/krad.h | 3 ++-
src/lib/krad/remote.c | 3 +++
2 files changed, 5 insertions(+), 1 deletions(-)