Thread View: news.software.nntp
3 messages
3 total messages
Started by Dang Phan Swin
Wed, 19 Jun 2002 10:47
netscape messenger 4.79 sends 2 connection requests?
Author: Dang Phan Swin
Date: Wed, 19 Jun 2002 10:47
Date: Wed, 19 Jun 2002 10:47
46 lines
2212 bytes
2212 bytes
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. 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: . C: group <group_name1> S: 211 0 0 0 <group_name1> group selected C: group <group_name2> S: 211 2 1 2 <group_name2> group selected C: group <group_name3> S: 211 1 1 1 <group_name3> group selected 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? Thank you very much for your help. Cheers, Dang.
Re: netscape messenger 4.79 sends 2 connection requests?
Author: Juergen Helbing
Date: Thu, 20 Jun 2002 20:47
Date: Thu, 20 Jun 2002 20:47
39 lines
1672 bytes
1672 bytes
"Dang Phan Swin" <a@a.com> wrote: >C: authinfo pass ... >S: 281 accepted >C: list extensions >S: 202 list of extensions follows >S: listgroup >S: authinfo >S: over >S: pat >S: . Nice... >C: group <group_name1> >S: 211 0 0 0 <group_name1> group selected >C: group <group_name2> >S: 211 2 1 2 <group_name2> group selected >C: group <group_name3> >S: 211 1 1 1 <group_name3> group selected > >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? Perhaps the client sends: group <groupname> CRLF article 23 CRLF in one block. And perhaps your parser does delete everything after the first CRLF. Some clients are sending more than one command with one send() call. HTH -- Juergen
Re: netscape messenger 4.79 sends 2 connection requests?
Author: 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/
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