From e0ec82cf5e4e9ca3070ed5a3ff51b1ff927fe7f4 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Sun, 13 Oct 1996 16:45:09 +0000 Subject: Add settable server-nonresponse timeout svn path=/trunk/; revision=325 --- socket.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'socket.c') diff --git a/socket.c b/socket.c index 62ea92b5..24d86ee8 100644 --- a/socket.c +++ b/socket.c @@ -12,7 +12,6 @@ #include -#include #include #include #include @@ -43,9 +42,6 @@ #define INTERNAL_BUFSIZE 2048 -extern int timeout; -extern void alarm_handler(); - int Socket(host, clientPort) char *host; int clientPort; @@ -88,13 +84,6 @@ int len; while (--len) { - /* we have to push alarm in case we receive a large message */ - sigsave = signal (SIGALRM, alarm_handler); - if (sigsave == alarm_handler) - alarm (timeout); - else - signal (SIGALRM, sigsave); - if (SockInternalRead(socket, buf, 1) != 1) return -1; else -- cgit v1.2.3