]> git.ipfire.org Git - thirdparty/krb5.git/commit
Do not allow stream socket retries in libkrad
authorNathaniel McCallum <npmccallum@redhat.com>
Fri, 7 Aug 2015 19:35:58 +0000 (15:35 -0400)
committerTom Yu <tlyu@mit.edu>
Tue, 18 Aug 2015 20:57:41 +0000 (16:57 -0400)
commit051a31aac553defb2ef0ed4354b799090899904e
tree1970675d4f25d93a2cf6d997205445b0e1f4932d
parent6ee030430abcfd76294b6599ccaa24c4d36674db
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
src/include/krad.h
src/lib/krad/remote.c