Article View: news.software.nntp
Article #86445Re: INN 2.5.3 - extending nnrpd external authentication timeout
From: Tim
Date: Sat, 07 Feb 2015 11:01
Date: Sat, 07 Feb 2015 11:01
29 lines
2395 bytes
2395 bytes
On Wed, 04 Feb 2015 22:03:08 +0100, Julien ΓLIE <iulius@nom-de-mon-site.com.invalid> wrote: >> It looks like the relevant variable is tv.tv_sec, which is set to 5 on >> line 205 in auth-ext.c. > >Yep, that's the hard-coded value. A comment a bit above says: >** Currently, use a hard-coded five-second timeout for all programs. This >** might need to be configurable later. > >> Can I simply increase this value and recompile to extend the timeout, >> or will the cause other problems? > >After digging a bit in the code that calls handle_output() and >auth_external(), I do not see a reason why increasing this value >whould not work. > >Just keep it under the value of clienttimeout in inn.conf (which is very >large anyway) and the 5 minutes of DEFAULT_TIMEOUT in include/inn/options.h. Many thanks! I modified the value and recompiled, and it seems to have worked on my test server, but I haven't deployed to the live server yet. Curiously, the nnrpd binary that dropped out was significantly smaller than the old one, even though I did not change any configuration options. Very strange.
Technical Details
Message-ID:
<b7rbdads9ji0mdce3r76kg56394hvsngi0@4ax.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20150601.mbox.gz!border1.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mailReferences:
<55n4da9vq2am8l2et0laqmvq3ibnrne15l@4ax.com> <cjffocF6u5bU1@mid.individual.net>Show Full Headers
Complete Article Headers
Message-ID: <b7rbdads9ji0mdce3r76kg56394hvsngi0@4ax.com> Subject: Re: INN 2.5.3 - extending nnrpd external authentication timeout Date: Sat, 07 Feb 2015 11:01:13 +0000 From: Tim <tim@nospam.invalid> References: <55n4da9vq2am8l2et0laqmvq3ibnrne15l@4ax.com> <cjffocF6u5bU1@mid.individual.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20150601.mbox.gz!border1.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail Newsgroups: news.software.nntp Organization: A noiseless patient Spider Lines: 29 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: mx02.eternal-september.org; posting-host="ad50a26c886a65d59c1f7f7771d3014a"; logging-data="4965"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ifBA6loz4/u6hBy6BLS3p" X-Newsreader: Forte Free Agent 2.0/32.652 Cancel-Lock: sha1:/vXim6uFUGs2mEgXPlG66d6yU+g=