(recvline): Remove the timeout feature. There are many other places

where the client could wait indefinitely for the server.  The user can
always interrupt.

[_WIN32] (alarm): Unused, remove.
This commit is contained in:
Markus Armbruster 2007-12-14 06:59:09 +00:00
parent 43cceac785
commit 3807cffe52
3 changed files with 0 additions and 12 deletions

View file

@ -65,7 +65,6 @@ recvline(int s, char *buf)
int cc;
size = 1024;
(void)alarm(30);
ptr = buf;
n = recv(s, ptr, size, MSG_PEEK);
if (n <= 0) {
@ -108,7 +107,6 @@ recvline(int s, char *buf)
return 0;
}
buf[newline] = '\0';
(void)alarm(0);
if (!isxdigit(buf[0]) || buf[1] != ' ') {
fprintf(stderr, "Malformed line %s\n", buf);
return 0;