Fix ICP-timeout bug 108577

TOS
Stephane Bortzmeyer 24 years ago
parent e9f763c323
commit 2c3413ae11

@ -1,7 +1,8 @@
echoping now uses a numbering scheme analog to the
Linux kernel one's. Even versions like 2.2 are stable (or supposed to),
odd versions like 2.1 are unstable, beta.
3.0.0
* Autoconf/automake support
* Fix a bug in ICP timeout
2.2.1 :
Portability fixes

@ -3,7 +3,6 @@ machines exist.
TCP timeout with long packets seem to confuse Cisco routers.
ICP always replies even when timeouting. Bug 108577
$Id$

@ -93,7 +93,12 @@ recv_icp (sockfd, buf, retcode)
nr = recvfrom (sockfd, buf, DEFLINE, 0,
(struct sockaddr *) 0, (int *) 0);
/* BUG: we should test the return code, see if there was a timeout, etc */
if (nr < 0) {
if (timeout_flag)
err_quit ("Timeout while reading");
else
err_sys ("No reply from ICP proxy server");
}
opcode = headerp->opcode;
length = ntohs (headerp->length);
sprintf (retcode, "ICP reply: \42%s\42", icp_op_code[opcode]);

Loading…
Cancel
Save