Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Apr 1997 23:15:02 +0200 (MET DST)
From:      Maartje van der Heide <maartje@xs1.simplex.nl>
To:        freebsd-questions@freebsd.org
Cc:        maartje@simplex.nl
Subject:   INN1.5.1 and FreeBSD2.2
Message-ID:  <199704022115.XAA08512@xs1.simplex.nl>

next in thread | raw e-mail | index | archive | help
Hi,

I'm running FreeBSD 2.2 with INN1.5.1 and am experiencing the following 
problems:

1. NNRP readers often get "cant read Connection reset by peer" errors 
2. my NNTP feeder frequently serves me with two or more simultaneous feeds, 
   when there is one active and the secondd kicks in, I get the following 
   error message (syslog trace), and the first one closes. (a few checkpoint
   messages are edited out for readability)

Apr  2 22:17:23 news innd: news.NL.net connected 20 streaming allowed
Apr  2 22:17:23 news innd: news.NL.net:18 cant write Broken pipe
Apr  2 22:17:23 news innd: news.NL.net:18 closed seconds 671 accepted 1688 refused 0 rejected 331
Apr  2 22:17:23 news innd: news.NL.net:20 NCmode "mode stream" received
Apr  2 22:23:28 news innd: news.NL.net:20 closed seconds 365 accepted 907 refused 3 rejected 171
Apr  2 22:24:29 news innd: news.NL.net connected 18 streaming allowed
Apr  2 22:24:29 news innd: news.NL.net:18 NCmode "mode stream" received
Apr  2 22:33:49 news innd: news.NL.net connected 20 streaming allowed
Apr  2 22:33:49 news innd: news.NL.net:20 NCmode "mode stream" received
Apr  2 22:33:49 news innd: news.NL.net:18 cant write Broken pipe
Apr  2 22:33:49 news innd: news.NL.net:18 closed seconds 560 accepted 1736 refused 0 rejected 283
Apr  2 22:45:13 news innd: news.NL.net connected 18 streaming allowed
Apr  2 22:45:13 news innd: news.NL.net:20 cant write Broken pipe
Apr  2 22:45:13 news innd: news.NL.net:20 closed seconds 684 accepted 1579 refused 3 rejected 433
Apr  2 22:45:13 news innd: news.NL.net:18 NCmode "mode stream" received
Apr  2 22:55:06 news innd: news.NL.net:18 cant write Broken pipe
Apr  2 22:55:06 news innd: news.NL.net:18 closed seconds 593 accepted 1627 refused 3 rejected 385
Apr  2 22:55:21 news innd: news.NL.net connected 18 streaming allowed
Apr  2 22:55:21 news innd: news.NL.net:18 NCmode "mode stream" received


I've tracked error 2. down to the following piece of code in innd/chan.c,
but that doesn't help me much.

		    if (bp->Left) {
			cp->LastActive = Now.time;
			i = largewrite(fd, &bp->Data[bp->Used], bp->Left);
			if (i <= 0) {
			    oerrno = errno;
			    p = CHANname(cp);
			    errno = oerrno;
			    if (i < 0)
#  Here comes the error
				syslog(L_ERROR, "%s cant write %m", p);
			    else
				syslog(L_ERROR, "%s cant write", p);
			    cp->BadWrites++;
			    if (i < 0 && oerrno == EPIPE) {
				SITEchanclose(cp);
				CHANclose(cp, p);
			    }
			    else if (i < 0 && oerrno == EWOULDBLOCK) {
				WCHANremove(cp);
				CHANwritesleep(cp, p);
			    }
			    else if (cp->BadWrites >= BAD_IO_COUNT) {
				syslog(L_ERROR, "%s sleeping", p);
				WCHANremove(cp);
				SCHANadd(cp,
				    (time_t)(Now.time + PAUSE_RETRY_TIME),


Does anyone have an idea what may be causing this ?

Regards,

- Maartje.

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
| Maartje van der Heide                   email:  maartje@simplex.nl  |
+ Simplex Networking Amsterdam                                        +
| Postbus 36068                             tel:  (+3120) 6932433     |
+ 1020 MB  Amsterdam                        fax:  (+3130) 6051329     +
|                                         modem:  (+3120) 6653388     |
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199704022115.XAA08512>