projects
/
krb5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
875c121
)
If the select gets an EINTR error, retry with that host immediately, instead
author
Theodore Tso
<tytso@mit.edu>
Wed, 1 Dec 1993 22:14:09 +0000
(22:14 +0000)
committer
Theodore Tso
<tytso@mit.edu>
Wed, 1 Dec 1993 22:14:09 +0000
(22:14 +0000)
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
patch
|
blob
|
history
diff --git
a/src/lib/krb5/os/sendto_kdc.c
b/src/lib/krb5/os/sendto_kdc.c
index f8dc24cab7931e1fdf56ccb1adb4d4741d236f0e..64b964292ae47dc5662782bbf877b98548cb78af 100644
(file)
--- 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;
}