From 6b50ce396e5dfcf7b4b8c169ca076485ac256466 Mon Sep 17 00:00:00 2001 From: Theodore Tso Date: Wed, 1 Dec 1993 22:14:09 +0000 Subject: [PATCH] If the select gets an EINTR error, retry with that host immediately, instead of backing off through the exponential timeout. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3055 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/os/sendto_kdc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/krb5/os/sendto_kdc.c b/src/lib/krb5/os/sendto_kdc.c index f8dc24cab..64b964292 100644 --- a/src/lib/krb5/os/sendto_kdc.c +++ b/src/lib/krb5/os/sendto_kdc.c @@ -132,6 +132,7 @@ OLDDECLARG(krb5_data *, reply) if (send(socklist[addr[host].sa_family], message->data, message->length, 0) != message->length) continue; + retry: waitlen.tv_usec = 0; waitlen.tv_sec = timeout; FD_ZERO(&readable); @@ -143,7 +144,7 @@ OLDDECLARG(krb5_data *, reply) &waitlen)) { if (nready == -1) { if (errno == EINTR) - continue; + goto retry; retval = errno; goto out; } -- 2.26.2