Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!kuhub.cc.ukans.edu!anu-news!list From: LUSGR@VAX1.CC.LEHIGH.EDU (STEVE ROSEMAN) Newsgroups: news.software.anu-news Subject: RE: Unable to use NNTP_TCPCMU Message-ID: Date: 14 Sep 89 12:16:00 GMT Sender: ANU-NEWS Discussion Reply-To: STEVE ROSEMAN Lines: 108 X-VMS-To: ANU >From: Geoff Huston >Subject: RE: Unable to use NNTP_TCPCMU >If anyone has a version of the NNTP_TCPCMU code which does make a successful >call to TCP$INFO I'd be pleased to see it!! > > >cheers, > >Geoff Huston >gih900@csc.anu.oz.au > Here is a message I sent to Geoff this morning. It includes the NNTP fixes we have, including what I posted last week. ---------------------- Geoff, Did you see what I posted last week? It follows this message. In addition, I have had to fix the following (in V5.8a). 1. In NNTP_TCPCMU, there are some #ifdef DEBUG statements, instead of #if DEBUG. This causes some of the logging to be done all of the time (lots of sys$system:sys$error and sys$output files.) (I am still getting the files, but at least they are empty. There are other routines which 'may' write messages, so the files are still getting created. Just no more 80k blocks in 1 week...) 2. In NNTP_FEED, I changed the "YCMND" command sent out to the other end to a "STAT" command. The 3b15 we are feeding was filling up it's error log from the bad commands. 3. Also in NNTP_FEED, I changed the new_open_chan[20] to [32], as someone suggested to me at 5.7. Otherwise, NNTP was opening a new connection for each message. 4. Finally, I changed NNTP_MAX_OFFER to 10000 from 100. I was hitting max messages sent (or whatever), feeding the 3b15. Steve ------ X-NEWS: vax1.cc.lehigh.edu news.software.anu-news: 191 In article , LUSGR@VAX1.CC.LEHIGH.EDU (STEVE ROSEMAN) writes: > I am trying to install News 5.8 with the 5.8A patches on a VAXstation 3100 > running VMS 5.1-B, Vax C 3.0, and CPU/TEK TCP/IP V6.4. With the various > fixes (changes of 1 << PRV$V to PRV$M, copy v5maildef.h, etc.), I got > everything compiled, and NEWS seems to work. > > However, when I try to connect to the server (via TELNET/port=119, > NNTP_FEED, or using the NNTP_CLIENT), the connection opens, the disk > drive defined as NEWS_ROOT is accessed a few times, and the connection > closes. > ... Well, the following changes seem to fix the problems. The first was a misplaced io status check, the second problems with the getremhost code. ************ File LU$LIB:[ANU_V5P8.NEWS.NEWS_SRC]NNTP_TCPCMU.C;6 234 cks(sys$qiow(0,f,IO$_CREATE,iosb,0,0,0,0,119,0,0,0)); 235 cks(*i_o_sts); 236 return(1); ****** File LU$LIB:[ANU_V5P8.NEWS.NEWS_SRC]NNTP_TCPCMU.C-SAV;1 234 cks(*i_o_sts); 235 cks(sys$qiow(0,f,IO$_CREATE,iosb,0,0,0,0,119,0,0,0)); 236 return(1); ************ ************ File LU$LIB:[ANU_V5P8.NEWS.NEWS_SRC]NNTP_TCPCMU.C;6 267 short fill_0; 268 unsigned short fport; ****** File LU$LIB:[ANU_V5P8.NEWS.NEWS_SRC]NNTP_TCPCMU.C-SAV;1 267 unsigned short fport; ************ ************ File LU$LIB:[ANU_V5P8.NEWS.NEWS_SRC]NNTP_TCPCMU.C;6 282 cks(sys$qiow(0,f,IO$_MODIFY,iosb,0,0,&info_buffer,sizeof(info_buffer),0,0,0,0)) ; 283 cks(*i_o_sts); ****** File LU$LIB:[ANU_V5P8.NEWS.NEWS_SRC]NNTP_TCPCMU.C-SAV;1 281 cks(sys$qiow(0,f,IO$_MODIFY,iosb,0,0,&info_buffer,26,0,0,0,0)); 282 cks(*i_o_sts); ************ Number of difference sections found: 3 Number of difference records found: 4 DIFFERENCES /IGNORE=()/MERGED=1/OUTPUT=LU$LIB:[ANU_V5P8.NEWS.NEWS_BUILD]A.A;1- LU$LIB:[ANU_V5P8.NEWS.NEWS_SRC]NNTP_TCPCMU.C;6- LU$LIB:[ANU_V5P8.NEWS.NEWS_SRC]NNTP_TCPCMU.C-SAV;1 Steve -- ------------------------------------------------------------------------- Steve Roseman Lehigh University Computing Center LUSGR@VAX1.CC.Lehigh.EDU