com_err(whoami, 0, "starting update for %s", service_updated);
/* open connection */
+ gdb_Options |= GDB_OPT_KEEPALIVE;
conn = start_server_connection(service_address, "");
if (!conn || (connection_status(conn) == CON_STOPPED)) {
com_err(whoami, connection_errno(conn),
" can't connect to update %s", service_address);
return(MR_CANT_CONNECT);
}
- on = 1;
- setsockopt(conn->in.fd, SOL_SOCKET, SO_KEEPALIVE, &on, sizeof(on));
/* send authenticators */
code = send_auth(machine);