Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!sdd.hp.com!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!sol.UVic.CA!sol!mberkley From: mberkley@sanjuan.uvic.ca (Mike Berkley - 721-8752) Newsgroups: news.software.nntp Subject: Re: fix for nntp 1.5.10 / GNUS problem Message-ID: Date: 21 Nov 90 16:41:10 GMT References: <1990Nov20.221152.10825@csn.org> Sender: news@sol.UVic.CA Organization: University of Victoria Lines: 44 In-Reply-To: cedman@golem.ps.uci.edu's message of 21 Nov 90 03:21:57 GMT Nntp-Posting-Host: sanjuan.uvic.ca > On 21 Nov 90 03:21:57 GMT, cedman@golem.ps.uci.edu (Carl Edman) said: CE> About the hack to fix it. I usually post it once a week in CE> gnu.emacs.gnus (that is how often the problem comes up :-), but CE> here it is: CE> 2. Find where TIMEOUT is defined CE> 3. Comment it out CE> Negative consequence: There used to be a timeout for idle NNTP CE> connections of about 2 hours. This is gone. I (in fact this CE> university) can live(and post) with this just fine, but your CE> mileage may vary. But this university cannot live with this fix - our administrator (rightly) exhumed the buggy NNTP 1.5.10 after he found 86 nntpd's running (no timeouts). Vick Khera's fix is much more acceptable: ------------------------------------------------------------------------------ *** /tmp/,RCSt1a13658 Mon Oct 29 14:16:52 1990 --- serve.c Fri Oct 26 11:44:52 1990 *************** *** 126,131 **** --- 126,135 ---- (void) close(2); (void) dup(0); (void) dup(0); + + #ifdef TIMEOUT + (void) setbuf(stdin, NULL); /* Fix buggy select code */ + #endif /* If we're ALONE, then we've already opened syslog */ =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Vick Khera Gradual Student Department of Computer Science ARPA: khera@cs.duke.edu Duke University UUCP: ...!mcnc!duke!khera Durham, NC 27706 (919) 660-6528 ----------------------------------------------------------------------- ------------------------------------------------------------------------------ Mike Berkley mberkley@sanjuan@UVic.CA