diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1996-10-13 16:45:09 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1996-10-13 16:45:09 +0000 |
commit | e0ec82cf5e4e9ca3070ed5a3ff51b1ff927fe7f4 (patch) | |
tree | fd6b972516acea5c0155abaef7282a63bb36708f /socket.c | |
parent | 3fb4233b2db4486b6e593546798604bbdaf45613 (diff) | |
download | fetchmail-e0ec82cf5e4e9ca3070ed5a3ff51b1ff927fe7f4.tar.gz fetchmail-e0ec82cf5e4e9ca3070ed5a3ff51b1ff927fe7f4.tar.bz2 fetchmail-e0ec82cf5e4e9ca3070ed5a3ff51b1ff927fe7f4.zip |
Add settable server-nonresponse timeout
svn path=/trunk/; revision=325
Diffstat (limited to 'socket.c')
-rw-r--r-- | socket.c | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -12,7 +12,6 @@ #include <config.h> -#include <signal.h> #include <fcntl.h> #include <sys/types.h> #include <sys/socket.h> @@ -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 |