diff options
author | Nathaniel McCallum <npmccallum@redhat.com> | 2015-08-07 15:35:58 -0400 |
---|---|---|
committer | Tom Yu <tlyu@mit.edu> | 2015-08-18 16:57:41 -0400 |
commit | 051a31aac553defb2ef0ed4354b799090899904e (patch) | |
tree | 1970675d4f25d93a2cf6d997205445b0e1f4932d /src/include | |
parent | 6ee030430abcfd76294b6599ccaa24c4d36674db (diff) | |
download | krb5-051a31aac553defb2ef0ed4354b799090899904e.zip krb5-051a31aac553defb2ef0ed4354b799090899904e.tar.gz krb5-051a31aac553defb2ef0ed4354b799090899904e.tar.bz2 |
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.
[ghudson@mit.edu: minor wording edits]
(cherry picked from commit 25e0656fdf9862faf9aa91288023776e9a47caad)
ticket: 8229
version_fixed: 1.13.3
status: resolved
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/krad.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/krad.h b/src/include/krad.h index 913464c..e4edb52 100644 --- a/src/include/krad.h +++ b/src/include/krad.h @@ -251,7 +251,8 @@ krad_client_free(krad_client *client); * - hostname:service * * The timeout parameter (milliseconds) is the total timeout across all remote - * hosts (when DNS returns multiple entries) and all retries. + * hosts (when DNS returns multiple entries) and all retries. For stream + * sockets, the retries parameter is ignored and no retries are performed. * * The cb function will be called with the data argument when either a response * is received or the request times out on all possible remote hosts. |