]> andersk Git - moira.git/commitdiff
set keepalives
authormar <mar>
Wed, 30 Dec 1992 17:47:00 +0000 (17:47 +0000)
committermar <mar>
Wed, 30 Dec 1992 17:47:00 +0000 (17:47 +0000)
update/client.c

index 3884bf8d7747c2a507ce7e98063a312e29d7bd8b..29b9925bcae18a0faee48159fd10329ce14d17b5 100644 (file)
@@ -145,14 +145,13 @@ char *instructions;
     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);
This page took 0.030702 seconds and 5 git commands to generate.