Article View: news.software.readers
Article #61527Re: Problems with LIST ACTIVE Closing Connection
From: Curt Welch
Date: Sat, 13 May 2000 00:00
Date: Sat, 13 May 2000 00:00
90 lines
5184 bytes
5184 bytes
Nick Knight <nick@secant.com> wrote:
> In <20000513082418.620$fL@newsreader.com>, on 05/13/2000
> at 12:24 PM, curt@kcwc.com (Curt Welch) said:
>
> >Does your application ever try to read a large article? You should see
> >the same problem there and in that case there is no way to work around
> >it because there are no options in NNTP for reading only part of the
> >body.
>
> I have never seen a problem with fetching a large article, nor ever had
> one reported. However, I probably should test this via a couple of
> binary newsgroups, eh?
Yes, I'd suggest you do that.
Here's a list of Message-IDs for recent articles > 800K in size:
<sukqhs4gvhad227ok7ffp7i0gkvsd6ag6r@4ax.com>
<2vkqhss8lrd35dgsoco4bmi132c15g2ra1@4ax.com>
<5vkqhss0ppr77t323i3eg10ejrq4ls21h0@4ax.com>
<n7mqhsoirs1gaqag85dqa1nmpqbqpcb9fa@4ax.com>
<jV8C56Nv$GA.258@news1.sys.netsgo.com>
<gK9tL4Nv$GA.221@news1.sys.netsgo.com>
<10zAo7Nv$GA.239@news1.sys.netsgo.com>
<v7mqhsoftd075f2038rg7eodc0s3c4f23l@4ax.com>
<02#9R7Nv$GA.76@news1.sys.netsgo.com>
<h5mqhs42589vcq4ac4l7popnquuqk5jj2t@4ax.com>
Trying doing an ARTICLE <mid> command on these and see what happens
(assuming your server has them of course).
> >If you read large articles, and don't see the problem, then you have a
> >very strange bug in your code which reads the LIST ACTIVE data. To the
> >news server and to TCP/IP, there is no difference between LIST ACTIVE
> >and ARTICLE 12345.
>
> See, your notion that it was in dialup settings appealed to me. I mean,
> I wanted to believe it was in my code; that's why I was asking. However,
> I described in my original post that I could telnet to the newsserver,
> type "LIST ACTIVE" and within a short amount of time, would lose the
> connection.
Right. If you see the same problem with telnet, then it's not your code.
And you will never see that problem using telnet to any news server if
your connection is working correctly. So something in your connection
path is broken.
> I do, sometimes, now that I checked, get short, unterminated XOVER
> responses. Same thing. This was easy to code around and I did this some
> time ago. I'll have to revisit this (via telnet) and make sure it's the
> same exact thing, but I'll bet it is.
No newsreader in the world that I know of (I've written two newsreaders
and one news server), has any code to deal with truncated responses. They
just don't happen on real internet connections. TCP takes care of all
the retries on lost data so the application doesn't have to.
> I'll do more playing, but I'll also investigate settings at the
> dialup-answer end, and ask more questions about our firewall/gateway.
If you go though a firewall it's possible that's broken somehow as well.
Anything in the path could be suspect.
If I can access your server though your firewall I'll be happy to test
it for you from my (non-dialup) connection with a simple telnet. Feel free
to e-mail me if you want me to try something for you.
> I'm reluctant to call THAT the problem, as it's the same transport path
> whether I'm at work (fast, always works) or home (dialup through a work
> machine). Perhaps it's some odd buffer size combination/conflict. Since
> it isn't unqiue to my settup, I'll have to continue to explore coded
> solutions ("work arounds") too.
>
> I mean, what kinds of bugs can I have with a simple call to recv() in a
> loop? I guess I can study the code around it, but there isn't much!
If you parse the lines as you read them and do malloc()s to store the data
in some complex structures then who knows what type of pointer bugs you
might have that could cause no end of strange behavior.
But if you get the same problem doing a telnet to the NNTP server and
typing LIST ACTIVE, then there's no question that it's a problem in
the network somewhere between the server and your machine so there's
no need to suspect your application.
--
Curt Welch http://CurtWelch.Com/
curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20000513105516.188$zY@newsreader.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<391c1c8e$3$avpx$mr2ice@client.ce.news.psi.net> <20000512204628.625$Tz@newsreader.com> <391cb8f8$1$avpx$mr2ice@client.ce.news.psi.net> <20000513082418.620$fL@newsreader.com> <391d5e43$1$avpx$mr2ice@client.ce.news.psi.net>Show Full Headers
Complete Article Headers
Message-ID: <20000513105516.188$zY@newsreader.com>
Subject: Re: Problems with LIST ACTIVE Closing Connection
Date: Sat, 13 May 2000 00:00:00 +0000
From: curt@kcwc.com (Curt Welch)
References: <391c1c8e$3$avpx$mr2ice@client.ce.news.psi.net> <20000512204628.625$Tz@newsreader.com> <391cb8f8$1$avpx$mr2ice@client.ce.news.psi.net> <20000513082418.620$fL@newsreader.com> <391d5e43$1$avpx$mr2ice@client.ce.news.psi.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 622947500
X-User: Curt@NewsReader.Com
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5 %IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
Organization: NewsReader.Com
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Newsgroups: alt.usenet.offline-reader,news.software.readers