Skip Menu |
 

From: ghudson@mit.edu
Subject: git commit

Dynamically expand timeout when TCP connects

Wait ten seconds for a TCP connection to succeed or fail before moving
on. During this wait time, other TCP connections will be serviced if
we already initiated them, but no new TCP connections will be created
and no UDP packets will be retransmitted.

[ghudson@mit.edu: minor adjustments; commit message]

https://github.com/krb5/krb5/commit/f423c28a68e94e1aac2b40bb9902a017d2b0c83e
Author: Nathaniel McCallum <npmccallum@redhat.com>
Committer: Greg Hudson <ghudson@mit.edu>
Commit: f423c28a68e94e1aac2b40bb9902a017d2b0c83e
Branch: master
src/lib/krb5/os/sendto_kdc.c | 28 +++++++++++++++++++++++++++-
1 files changed, 27 insertions(+), 1 deletions(-)
I don't think this implementation takes effect when the TCP connect
returns 0 immediately (as opposed to EINPROGRESS). Probably not
important, but I'm noting it here for the record. If we switch to a
rule-based implementation of sendto_kdc as suggested in
http://k5wiki.kerberos.org/wiki/Projects/Rule_based_sendto_kdc_loop this
would be pretty easy to fix.