]> 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)
committerGreg Hudson <ghudson@mit.edu>
Fri, 7 Aug 2015 20:06:54 +0000 (16:06 -0400)
commit25e0656fdf9862faf9aa91288023776e9a47caad
tree37f01a333cae19b9af42d7753f989f7483c0087d
parent0e60d5ce041607cfc7659a8d3198d0f3f8958245
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]

ticket: 8229 (new)
target_version: 1.13.3
tags: pullup
src/include/krad.h
src/lib/krad/remote.c