dont quit if client unreachable

This commit is contained in:
Jeff Hill
1995-08-12 01:15:08 +00:00
parent fb2c2f0925
commit 2b7e4ff84d

View File

@@ -111,22 +111,37 @@ int lock_needed;
anerrno = errnoGet();
if( (anerrno!=ECONNABORTED&&
anerrno!=ECONNRESET&&
anerrno!=EPIPE&&
anerrno!=ETIMEDOUT)||
CASDEBUG>2){
if(pclient->proto == IPPROTO_TCP) {
if( (anerrno!=ECONNABORTED&&
anerrno!=ECONNRESET&&
anerrno!=EPIPE&&
anerrno!=ETIMEDOUT)||
CASDEBUG>2){
logMsg(
"CAS: client unreachable \"%s\"\n",
(int)strerror(anerrno),
NULL,
NULL,
NULL,
NULL,
NULL);
logMsg(
"CAS: TCP send failed because \"%s\"\n",
(int)strerror(anerrno),
NULL,
NULL,
NULL,
NULL,
NULL);
}
pclient->disconnect = TRUE;
}
else if (pclient->proto == IPPROTO_UDP) {
logMsg(
"CAS: UDP send failed because \"%s\"\n",
(int)strerror(anerrno),
NULL,
NULL,
NULL,
NULL,
NULL);
}
else {
assert (0);
}
pclient->disconnect = TRUE;
}
else{
logMsg(