Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!kuhub.cc.ukans.edu!anu-news!list From: munnari!csc.anu.oz.au!gih900@UUNET.UU.NET (Geoff Huston) Newsgroups: news.software.anu-news Subject: RE: Unable to use NNTP_TCPCMU Message-ID: <8909141333.AA18242@uunet.uu.net> Date: 15 Sep 89 04:21:27 GMT Sender: ANU-NEWS Discussion Reply-To: Geoff Huston Lines: 82 X-cc: LUSGR@"vax1.cc.lehigh.edu@ANU.anu.oz.au", GIH900@uunet.UU.NET In answer to Steve Roseman's mail > 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...) I looked at my versions of this and I couldn't see this - more than likely I made the changes a while ago and have long since forgotten! > 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. Good idea - also make the same change in NEWSREMCLIENT.C - the intent of sending a command was simply to ping the server to see if it was still there and hadn't timed out - any command with a 1 line output which does not change the context of the server is fine. > 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. My version has this set to 128 > 4. Finally, I changed NNTP_MAX_OFFER to 10000 from 100. I was hitting > max messages sent (or whatever), feeding the 3b15. Again here I'm using 500 in the distributed code - 10000 is a bit high! As to the suggested alterations:... >************ >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); >************ agreed but the next one is still doen't work for me at the moment... I looked at network.req for the definition of the info block, and it looked like some of the fields have to be fullword aligned, which is more a matter of luck with the compiler options more than design of the code round here!! ************ 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); >************ agreed Geoff Huston gih900@csc.anu.oz.au