diff --git a/src/WINNT/afsd/afsd_eventmessages.mc b/src/WINNT/afsd/afsd_eventmessages.mc index 53f48a618d..37c76a0bee 100644 --- a/src/WINNT/afsd/afsd_eventmessages.mc +++ b/src/WINNT/afsd/afsd_eventmessages.mc @@ -163,7 +163,7 @@ Severity=Warning Facility=System SymbolicName=MSG_RX_HARD_DEAD_TIME_EXCEEDED Language=English -Hard Dead Time exceeded when communicating with server %1 +Hard or Idle Dead Time exceeded when communicating with server %1 . MessageId= diff --git a/src/WINNT/afsd/cm_conn.c b/src/WINNT/afsd/cm_conn.c index 693b7feae1..4d28832fc8 100644 --- a/src/WINNT/afsd/cm_conn.c +++ b/src/WINNT/afsd/cm_conn.c @@ -107,7 +107,7 @@ void cm_InitConn(void) HardDeadtimeout = (unsigned short) RDRtimeout; afsi_log("HardDeadTimeout is %d", HardDeadtimeout); } - if (ConnDeadtimeout == 0) { + if (IdleDeadtimeout == 0) { IdleDeadtimeout = (unsigned short) RDRtimeout; afsi_log("IdleDeadTimeout is %d", IdleDeadtimeout); } @@ -604,28 +604,28 @@ cm_Analyze(cm_conn_t *connp, cm_user_t *userp, cm_req_t *reqp, /* RX codes */ else if (errorCode == RX_CALL_TIMEOUT) { - /* server took longer than hardDeadTime + /* RPC took longer than hardDeadTime or the server + * reported idle for longer than idleDeadTime * don't mark server as down but don't retry * this is to prevent the SMB session from timing out * In addition, we log an event to the event log */ if (serverp) { - /* Log server being offline for this volume */ - sprintf(addr, "%d.%d.%d.%d", - ((serverp->addr.sin_addr.s_addr & 0xff)), - ((serverp->addr.sin_addr.s_addr & 0xff00)>> 8), - ((serverp->addr.sin_addr.s_addr & 0xff0000)>> 16), - ((serverp->addr.sin_addr.s_addr & 0xff000000)>> 24)); + /* Log server being offline for this volume */ + sprintf(addr, "%d.%d.%d.%d", + ((serverp->addr.sin_addr.s_addr & 0xff)), + ((serverp->addr.sin_addr.s_addr & 0xff00)>> 8), + ((serverp->addr.sin_addr.s_addr & 0xff0000)>> 16), + ((serverp->addr.sin_addr.s_addr & 0xff000000)>> 24)); - LogEvent(EVENTLOG_WARNING_TYPE, MSG_RX_HARD_DEAD_TIME_EXCEEDED, addr); + LogEvent(EVENTLOG_WARNING_TYPE, MSG_RX_HARD_DEAD_TIME_EXCEEDED, addr); - osi_Log1(afsd_logp, "cm_Analyze: hardDeadTime exceeded addr[%s]", - osi_LogSaveString(afsd_logp,addr)); - reqp->tokenIdleErrorServp = serverp; - reqp->idleError++; - retry = 1; - } + osi_Log1(afsd_logp, "cm_Analyze: hardDeadTime or idleDeadtime exceeded addr[%s]", + osi_LogSaveString(afsd_logp,addr)); + reqp->tokenIdleErrorServp = serverp; + reqp->idleError++; + } } else if (errorCode >= -64 && errorCode < 0) { /* mark server as down */