kadmin: enable keepalive mode on incoming sockets
Change-Id: I07d0e0c866f1081002b3e20ca9198055f98fe7d1
This commit is contained in:

committed by
Jeffrey Altman

parent
51912c0215
commit
28b9283709
@@ -288,6 +288,8 @@ start_server(krb5_context contextp, const char *port_str)
|
|||||||
rk_closesocket(s);
|
rk_closesocket(s);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
socket_set_keepalive(s, 1);
|
||||||
socks[num_socks++] = s;
|
socks[num_socks++] = s;
|
||||||
}
|
}
|
||||||
freeaddrinfo (ai);
|
freeaddrinfo (ai);
|
||||||
|
@@ -204,6 +204,8 @@ main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
#endif /* _WIN32 */
|
#endif /* _WIN32 */
|
||||||
sfd = STDIN_FILENO;
|
sfd = STDIN_FILENO;
|
||||||
|
|
||||||
|
socket_set_keepalive(sfd, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(realm)
|
if(realm)
|
||||||
|
Reference in New Issue
Block a user