experimental patch to use stale group data if server down

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





Experimental.  If the server is probably down, don't provoke it with a GROUP
command if you have the hi & lo numbers sitting around anyway.  Will allow
longer use of a dead server.


*** nntpcache-2.3.3b2-local/src/group.c	Wed Aug 05 03:17:48 1998
--- nntpcache-2.3.3b2/src/group.c	Sun Aug 02 13:35:00 1998
***************
*** 260,267 ****
  		    }
  		else
  		    {
! 			/* if group data not stale || server probably down THEN use cached data  -an */
! 			if (time(NULL) - gt < scfg->group_timeout || scfg->share->server_down > scfg->share->server_up)
  			    {
  				if (sendclient)
  				    emitf ("%d %d %d %d %s\r\n", NNTP_GROUPOK_VAL, msgs, lo, hi, group);
--- 260,266 ----
  		    }
  		else
  		    {
! 			if (time(NULL) - gt < scfg->group_timeout)
  			    {
  				if (sendclient)
  				    emitf ("%d %d %d %d %s\r\n", NNTP_GROUPOK_VAL, msgs, lo, hi, group);

-- 
Aaron Nabil


[Index of Archives]     [Yosemite]     [Yosemite Campsites]     [Bugtraq]     [Linux]     [Trn]

Powered by Linux