From:	ADVAX::"mcnc!VM1.NoDak.EDU!andrew%MATAI.VUW.AC.NZ" "Andrew Greer" 14-JUN-1991 14:11:21.76
To:	Multiple recipients of list ANU-NEWS <ANU-NEWS@NDSUVM1>
CC:	
Subj:	Problem with ANU-News v6.0-3 as NNTP client

Received: by ADVAX.DECnet (utk-mail11 v1.5) ; Fri, 14 Jun 91 14:08:19 EDT
Received:  from mcnc by ge-dab.GE.COM (5.61/GE-DAB 1.15) with UUCP
	id AA13366 for ; Fri, 14 Jun 91 12:24:47 -0400
Received: from VM1.NoDak.EDU by mcnc.mcnc.org (5.59/MCNC/3-21-91)
	id AA06489; Tue, 11 Jun 91 01:35:25 -0400
	for ARISIA.DNET.ge.com!EVERHART
Message-Id: <9106110535.AA06489@mcnc.mcnc.org>
Received: from NDSUVM1.BITNET by VM1.NoDak.EDU (IBM VM SMTP R1.2.1MX) with BSMTP id 5591; Tue, 11 Jun 91 00:34:21 CDT
Received: from NDSUVM1.BITNET by NDSUVM1.BITNET (Mailer R2.07) with BSMTP id
 2157; Tue, 11 Jun 91 00:34:20 CDT
Date:         Fri, 7 Jun 91 02:45:46 GMT
Reply-To: Andrew Greer <mcnc!VM1.NoDak.EDU!andrew%MATAI.VUW.AC.NZ>
Sender: ANU-NEWS Discussion <ANU-NEWS@VM1.NoDak.EDU>
Comments:     Warning -- original Sender: tag was news@RATA.VUW.AC.NZ
From: Andrew Greer <mcnc!VM1.NoDak.EDU!andrew%MATAI.VUW.AC.NZ>
Subject:      Problem with ANU-News v6.0-3 as NNTP client
To: Multiple recipients of list ANU-NEWS <ANU-NEWS@NDSUVM1>
 
  Greetings,
        I have found a problem with ANU-News V6.0-3 working as an NNTP client
to Cnews 1.5.11. Sometimes after reading a newsgroup for a while. It complains
that an article cannot be retrieved from the server. The problem seems to be
that sometimes during the session the network connection is closed and opened
again. The server then has lost the context of the reading session. The client
asks for an article and the response is:
 
    412 You are not currently in a newsgroup.
 
  I have made a very simplistic patch to the routine getno_server in
NEWSREMCLIENT.C. All it does is if the receives a 412 response to an ARTICLE
request it sends a GROUP <current group name> and then an ARTICLE <item>.
 
--
Andrew Greer,
VAX Systems Programmer
--------------------------------------------------------------------------
Computing Services Centre    |  Domain:    Andrew.Greer@vuw.ac.nz
Victoria University          |  Phone:     +64 4 721-000 ext 8054
P.O. Box 600                 |  Fax:       +64 4 712 070
Wellington, New Zealand      |
 
--------------------patch to NEWSREMCLIENT.C------------------------------
*** newsremclient.c-orig
--- newsremclient.c
**************
*** 945,951
      return(0);
      }
    sprintf(cmd,"ARTICLE %d",itm);
!   if (!nntp_write(cmd) || (wait_net_response(CLIENT_TIMER,1) != 220)) {
          sprintf(err_oline,"\tERROR - Item not located on SERVER (%s)\n",node);
          wmg(err_oline);
          return(0);
--- 945,973 -----
      return(0);
      }
    sprintf(cmd,"ARTICLE %d",itm);
!   if (nntp_write(cmd)) {
!     netresp = wait_net_response(CLIENT_TIMER,1);
!     if (netresp == 412)
!       { /* 412 is no group specified so set group then try to get article */
!         sprintf(cmd,"GROUP %s",ga[curr_g]->grp_name);
!         if (!nntp_write(cmd) || (wait_net_response(CLIENT_TIMER,1) != 211))
!           {
!             sprintf(err_oline,"\tERROR - Item not returned from SERVER (%s)\n"
,node);
!             wmg(err_oline);
!             return(0);
!           }
!         sprintf(cmd,"ARTICLE %s",itm);
!         if (nntp_write(cmd))
!            netresp = wait_net_response(CLIENT_TIMER,1);
!         else
!           {
!             sprintf(err_oline,"\tERROR - Item not located on SERVER (%s)\n",no
de);
!             wmg(err_oline);
!             return(0);
!           }
!       }
!     }
!     if (netresp != 220) {
          sprintf(err_oline,"\tERROR - Item not located on SERVER (%s)\n",node);
          wmg(err_oline);
          return(0);
