kadmin: enable keepalive mode on incoming sockets

Change-Id: I07d0e0c866f1081002b3e20ca9198055f98fe7d1
This commit is contained in:
Jeffrey Altman
2020-07-20 09:18:16 -04:00
committed by Jeffrey Altman
parent 51912c0215
commit 28b9283709
2 changed files with 4 additions and 0 deletions

View File

@@ -288,6 +288,8 @@ start_server(krb5_context contextp, const char *port_str)
rk_closesocket(s);
continue;
}
socket_set_keepalive(s, 1);
socks[num_socks++] = s;
}
freeaddrinfo (ai);

View File

@@ -204,6 +204,8 @@ main(int argc, char **argv)
}
#endif /* _WIN32 */
sfd = STDIN_FILENO;
socket_set_keepalive(sfd, 1);
}
if(realm)