🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
6 messages
6 total messages Started by gordon beaton Sat, 13 Jul 1996 00:00
nn-6.5.0b losing server connection
#7702
Author: gordon beaton
Date: Sat, 13 Jul 1996 00:00
27 lines
1280 bytes

When I leave nn untouched for a few minutes (10 or so, not really
sure) I get this error and nn exits next time I try to read an article
or go to another newsgroup:

Lost connection to NNTP server news.uu.se: Bad file number

Normally it's not a problem, but sometimes I spend a long time reading
an article or writing a response and when I try to go to the next
article I get the error.

It looks to me like a socket is timing out - is there a patch for this
or do I need to find the problem and fix it myself?

I am running 6.5.0b on Solaris 2.4.  I don't recall ever having this
problem with 6.4.18.

/gordon

--
gordon beaton                                    http://www.docs.uu.se/~gordon
department of computer systems
uppsala university
uppsala, sweden

Re: nn-6.5.0b losing server connection
#7710
Author: gordon beaton
Date: Mon, 15 Jul 1996 00:00
24 lines
1157 bytes
I wrote:
> When I leave nn untouched for a few minutes (10 or so, not really
> sure) I get this error and nn exits next time I try to read an article
> or go to another newsgroup:

> Lost connection to NNTP server news.uu.se: Bad file number

Following up my own article...

I should have probably mentioned that we are using NNTP and NOV.

I now set SO_KEEPALIVE in get_socket() (nntp.c) but this doesn't seem
to affect the problem.

/gordon

--
gordon beaton                                    http://www.docs.uu.se/~gordon
department of computer systems
uppsala university
uppsala, sweden

Re: nn-6.5.0b losing server connection
#7718
Author: gordon beaton
Date: Sat, 27 Jul 1996 00:00
33 lines
1776 bytes
fox@popi.net (Fuzzy Fox) writes:
> no@junk.email.thanks (gordon beaton) writes:

> >> When I leave nn untouched for a few minutes (10 or so, not really
> >> sure) I get this error and nn exits next time I try to read an article
> >> or go to another newsgroup:

> >> Lost connection to NNTP server news.uu.se: Bad file number

> > I should have probably mentioned that we are using NNTP and NOV.

> > I now set SO_KEEPALIVE in get_socket() (nntp.c) but this doesn't seem
> > to affect the problem.

> Have you considered that perhaps your NNTP server doesn't like
> connections that are idle for that length of time, and is simply
> dropping the connection?  Perhaps it has nothing to do with nn.

Actually that did occur to me.  The reason I suspected nn was that I
never noticed the problem before switching from 6.4.18 to
6.5.0b3. Never hurts to ask...

/gordon


--
gordon beaton                            machine unreadable email address:
department of computer systems           g o r d o n @ d o c s . u u . s e   
uppsala university                                     
uppsala, sweden                                                  

Re: nn-6.5.0b losing server connection
#7723
Author: J. Porter Clark
Date: Sat, 27 Jul 1996 00:00
25 lines
1549 bytes
no@junk.email.thanks (gordon beaton) writes:

>Actually that did occur to me.  The reason I suspected nn was that I
>never noticed the problem before switching from 6.4.18 to
>6.5.0b3. Never hurts to ask...

nn does not gracefully handle server-side disconnects.  I think this
is a requirement of the Good Netkeeping Seal of Approval, but the nntp
code in nn is older than that...

BTW, setting SO_KEEPALIVE won't help you much.  Check your OS
configuration to see how long it takes to send keepalive probes and
you'll see why.  8-(

Around here, our nnrpd is set to 2 hours for the timeout and I still
get complaints.  Typically a user has spent 2 hours composing a post
and then gets cut off.  What I'd like to know is why I'm not seeing any
posts that look like they took more than 5 minutes to compose.  8-)

-- 
J. Porter Clark    jpc@drum.msfc.nasa.gov
NASA/MSFC Flight Data Systems Branch

Re: nn-6.5.0b losing server connection
#7725
Author: Fuzzy Fox
Date: Sat, 27 Jul 1996 00:00
24 lines
1449 bytes
no@junk.email.thanks (gordon beaton) writes:

>> When I leave nn untouched for a few minutes (10 or so, not really
>> sure) I get this error and nn exits next time I try to read an article
>> or go to another newsgroup:

>> Lost connection to NNTP server news.uu.se: Bad file number

> I should have probably mentioned that we are using NNTP and NOV.

> I now set SO_KEEPALIVE in get_socket() (nntp.c) but this doesn't seem
> to affect the problem.

Have you considered that perhaps your NNTP server doesn't like
connections that are idle for that length of time, and is simply
dropping the connection?  Perhaps it has nothing to do with nn.

-- 
     fox@popi.net (Fuzzy Fox)      || "If you view your problem closely
sometimes known as David DeSimone  ||  enough, you will recognize yourself
  http://www.metronet.com/~fox/    ||  as part of the problem."

Solved: nn-6.5.0b losing server connection
#7751
Author: gordon beaton
Date: Thu, 01 Aug 1996 00:00
34 lines
1838 bytes
jpc@hammer.msfc.nasa.gov (J. Porter Clark) writes:

> no@junk.email.thanks (gordon beaton) writes:

> >Actually that did occur to me.  The reason I suspected nn was that I
> >never noticed the problem before switching from 6.4.18 to
> >6.5.0b3. Never hurts to ask...

> nn does not gracefully handle server-side disconnects.  I think this
> is a requirement of the Good Netkeeping Seal of Approval, but the nntp
> code in nn is older than that...

Perhaps much of it, but not the NOV support. 

Anyway, it seems that the problem has already been fixed by someone
else. At

  http://www.math.fu-berlin.de/~guckes/nn/index.html

there is a patch to the NOV code in nntp.c which fixes the problem
with server disconnects after leaving nn untouched for more than a few
minutes. (Obviously this was not a problem with 6.4.18, which didn't
support NOV.)

/gordon

--
gordon beaton                            machine unreadable email address:
department of computer systems           g o r d o n @ d o c s . u u . s e   
uppsala university                                     
uppsala, sweden                                                  

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads