Path: utzoo!utstat!news-server.csri.toronto.edu!math.lsa.umich.edu!zaphod.mps.ohio-state.edu!samsung!cs.utexas.edu!uunet!cos!hqda-ai!media!unixbox!rmf From: rmf@media.medianette (Roger Fujii) Newsgroups: news.software.b Subject: C News Ihave/Sendme Message-ID: <1990Aug14.051835.209@media.medianette> Date: 14 Aug 90 05:18:35 GMT Organization: media Lines: 27 After sending some time digging through the Cnews source code, it seems to me that the Ihave-Sendme implementation is 'less than optimal'. Unless I am missing something, it seems that Cnews generates a 'sendme' AS SOON AS it processes the ihaves. This destroys any advantage of delaying the sendbatches of Host.sendme to 'disfavor' a slow ihave site (My situation is several incoming ihave/sendme sites, some TB+s, and some 2400s - we would like to favor the TB sites). Anyway, I rigged up a set of changes to (hopefully) fix this. Here is what I did: 1) I produced a program that will re-check article ids to see if it has arrived. This is to check to see if the article has come in after receiving the ihave, but before I gen the sendme. 2) Changed batchsm to call this program instead of cat. 3) Fixed spacefor to accept "ihave" & "sendme" flags to calculate saner numbers. 4) Changed batchsplit to check for ihave/sendme messages and calculate saner sizes 5) Changed sendbatches to pass the ihave/sendme flag to the modified spacefor. This seems to work, but I have this nasty feeling that this is too simple and I am missing something. Any comments? -- Roger Fujii - Media Cybernetics Phone: (301)495-3305 Internet: rmf%media@uunet.uu.net UUCP: {uunet,hqda-ai}!media!rmf