From: Jeffrey Altman Date: Mon, 14 Jun 2010 13:43:31 +0000 (-0400) Subject: Windows: register idle dead timeout error X-Git-Tag: upstream/1.8.0_pre1^2~4627 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=f943a4eb524434d25ecf99cba0843ded13aef176;p=packages%2Fo%2Fopenafs.git Windows: register idle dead timeout error be like the unix cache manager and set an error code so idle dead time is enforced on sending. LICENSE MIT Change-Id: I2d78f3a0f6e30147c0816259b45b6b95a3d4f79c Reviewed-on: http://gerrit.openafs.org/3033 Reviewed-by: Jeffrey Altman Tested-by: Jeffrey Altman --- diff --git a/src/WINNT/afsd/cm_conn.c b/src/WINNT/afsd/cm_conn.c index 0f644fcde..fa7c5e5d7 100644 --- a/src/WINNT/afsd/cm_conn.c +++ b/src/WINNT/afsd/cm_conn.c @@ -1186,6 +1186,11 @@ static void cm_NewRXConnection(cm_conn_t *tcp, cm_ucell_t *ucellp, rx_SetConnHardDeadTime(tcp->rxconnp, HardDeadtimeout); rx_SetConnIdleDeadTime(tcp->rxconnp, IdleDeadtimeout); + /* + * Register the error to be returned on an idle dead timeout + */ + rx_SetServerConnIdleDeadErr(tcp->rxconnp, RX_CALL_DEAD); + /* * Let the Rx library know that we can auto-retry if an * RX_MSGSIZE error is returned.