Subject: Once again, the site.c patch
To: [email-masked]

Date sent:        Sat, 07 Feb 1998 22:29:35 -0800
From:             Dave Hayes <[email-masked]>

I'm trying this again, the last message didn't make it through.
This is a bugfix to site.c. Can someone commit this?
------
Dave Hayes - Altadena CA, USA - [email-masked] 
  >>> The opinions expressed above are entirely my own <<<
Freedom Knight of Usenet - (NEW!) http://www.jetcafe.org/~dave/usenet 

In a dream, Nasrudin saw himself being counted out coins. When there were
nine silver pieces in his hand, the invisible donor stopped giving them.
Nasrudin shouted, "I must have ten!" so loudly that he woke himself up.
Finding all the money gone he closed his eyes again and said. "All right, 
then, give them back. I'll take the nine."

*** innd/site.c	1998/02/05 21:50:43	1.1
--- innd/site.c	1998/02/05 21:53:17
***************
*** 256,261 ****
--- 256,265 ----
  		bp->Left -= j;
  		bp->Used += j;
  		i = cp->Out.Left;
+ 		/* Since we just had a successful write, we need to clear the 
+ 		 * channel's error counts. - [email-masked] */
+ 		cp->BadWrites = 0;
+ 		cp->BlockedWrites = 0;
  	    }
  	    if (bp->Left <= 0) {
                  /* reset Used, Left on bp, keep channel buffer size from