Article View: news.software.nntp
Article #59235Re: netscape messenger 4.79 sends 2 connection requests?
From: Curt Welch
Date: Thu, 20 Jun 2002 21:50
Date: Thu, 20 Jun 2002 21:50
83 lines
3958 bytes
3958 bytes
"Dang Phan Swin" <a@a.com> wrote: > Hi, > > I'm developing a java news server and testing it with Netscape Messenger > 4.79. I've found 2 problems: > > 1. This newsreader sends 2 socket requests to open connections and one of > them quickly causes the following exception: > > java.net.SocketException: Connection aborted by peer: JVM_recv in socket > input stream read. Odd. It sounds like netscape is just closing the connection. But I don't know why it would open a connection and then close it. Makes me wonder if you code is really doing what you think it's doing. > 2. The other connection request is going on with the following commands: > > Client: mode reader > Server: 200 ... > C: authinfo user ... > S: 381 send password > C: authinfo pass ... > S: 281 accepted > C: list extensions > S: 202 list of extensions follows > S: listgroup > S: authinfo > S: over > S: pat > S: . That's wrong I think. I believe (without checking the RFCs) it needs to be upper case and I think there needs to be a space before each keyword. Like this: S: 202 list of extensions follows S: OVER S: PAT S: LISTGROUP S: LISTMOTD S: . Thought I wouldn't expect that to cause a big problems. But maybe since you do support the LIST EXTENSIONS command but don't support "over", that makes it think that XOVER doesn't work???? You also might try removing support for the LIST EXTENSIONS command (return a 500 error) and see if that makes a difference. > C: group <group_name1> > S: 211 0 0 0 <group_name1> group selected You add the text "group selected" to the end of the response? Try not doing that. > and then messenger hangs, it does show group names on the right hand side > window, number of messages for group in status bar, but NOT show anything > in the message window. Also, when I click "Get Msg" button, it will send > 'group' command and 'quit' command. > > Any ideas? Juergen's idea of you not parsing commands correctly when it's sent in one packet is worth looking into. Don't assume that one read will return only one command. Another thing you could try to do is find out what that newsreader does when talking to a news server it works with. If there's a debug system in the newsreader, try using it to see what it does for other servers. If you can't do that, try setting up or writing a news proxy which simply connects to a remote server and passes data though. Add logging to it and you will then be able to see exactly what that news client is doing with other servers and that should give you some idea of where the problem is. Or, if you have a network dump tool for your platform (tcpdump etc) you could use that. That's all that comes to mind. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20020620175032.243$gU@newsreader.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!netnews.com!xfer02.netnews.com!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<aepnej$i6i$1@c3p0.cc.swin.edu.au>Show Full Headers
Complete Article Headers
Message-ID: <20020620175032.243$gU@newsreader.com>
Subject: Re: netscape messenger 4.79 sends 2 connection requests?
Date: Thu, 20 Jun 2002 21:50:32 +0000
From: curt@kcwc.com (Curt Welch)
References: <aepnej$i6i$1@c3p0.cc.swin.edu.au>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!netnews.com!xfer02.netnews.com!feed1.newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com M26z-bdN@RUWL-5D+Vn06.s8+Nk3ucDP89Z9fMVSFRe1oP
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
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 82