Path: utzoo!attcan!uunet!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!uupsi!cmcl2!panix!alexis From: alexis@panix.uucp (Alexis Rosen) Newsgroups: comp.unix.aux Subject: Revised Bug Report, part 2: uuxqt and uuxqt.wrap Message-ID: <1990Dec14.123002.12424@panix.uucp> Date: 14 Dec 90 12:30:02 GMT Organization: PANIX - Public Access Unix Systems of NY Lines: 45 For those who have been following the saga of panix's uucp woes, the score is: A/UX UUCP - 3 panix - 0 at the end of the first half. But now, we begin to make a comeback... In my postings yesterday I described how I discovered what appears to be a nasty bug (or misconfiguration) of mail. I had also said that news was misbehaving, but that that wasn't related to our mail problem. The problem with news is that uuxqt is broken, and it causes news to be dropped on the floor. Other types of xqts could also break. Two months ago I posted a shell script, uuxqt.wrap, that made uuxqt safe to use and it worked like a champ for two months. Last week, the wrapper started failing accasionally. I eventually discovered that since we were now calling several sites simultaneously, uuxqt could be set off while a uucp connection was in progress. Thus the wrapper, which tries to keep uuxqt from doing more than ten jobs before exiting, was actually letting anywhere from 10 to 13 or 14 jobs get to uuxqt. Unforunately, if the eleventh is a news job (or at least a Cnews job), it will fail. By the time it recovers (after tossing the newsbatch), many more jobs will have arrived, and it will continue to kill newsbatches until the uuxqt expires completely. Fortunately, the fix is simple (if a bit inefficient). Simply change the line in uuxqt.wrapper (which should be in /usr/lib/uucp/uuxqt if you're using it) from for i in `head /tmp/xw$$` ; do # pull out first ten to for i in `head -7 /tmp/xw$$` ; do # pull out first seven ...and that's all it takes. If you're paranoid or you get many simultaneous connections transferring small files, you might cut it as low as five. This fix has been in place for several days and it has proven impervious to heavy simultaneous uucp traffic. I hope that everyone finds this info useful. At this point we're only lacking a patch to mail (as described yesterday). I know I said I'd try to patch it myself if nobody else does, but I thought of a fairly easy way to do it with another shell-script wrapper. I'd still prefer a patch, though, as it's much more efficient. Anybody offering? --- Alexis Rosen Owner/Sysadmin, PANIX Public Access Unix, NY {cmcl2,apple}!panix!alexis