From 333d2c82277d492735fdb41b04ddc272c5b09a4d Mon Sep 17 00:00:00 2001 From: mar Date: Wed, 30 Dec 1992 17:47:00 +0000 Subject: [PATCH] set keepalives --- update/client.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/update/client.c b/update/client.c index 3884bf8d..29b9925b 100644 --- a/update/client.c +++ b/update/client.c @@ -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); -- 2.45.2