Article View: news.software.nntp
Article #86443Re: INN 2.5.3 - extending nnrpd external authentication timeout
From: Julien ÉLIE
Date: Wed, 04 Feb 2015 21:03
Date: Wed, 04 Feb 2015 21:03
29 lines
2303 bytes
2303 bytes
Hi Tim, > I'm running an INN 2.5.3 server, and I need to extend the timeout that > nnrpd waits for a response from an external authenticator (e.g. > ckpasswd). This seems to be hard-coded as 5 seconds. > > 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. -- Julien ÉLIE « Ce qui m'intéresse chez une femme, c'est ce que je n'ose pas lui demander. » (Wolinski)
Technical Details
Message-ID:
<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.20150207.mbox.gz!border2.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!news-1.dfn.de!news.dfn.de!news.informatik.hu-berlin.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<55n4da9vq2am8l2et0laqmvq3ibnrne15l@4ax.com>Show Full Headers
Complete Article Headers
Message-ID: <cjffocF6u5bU1@mid.individual.net> Subject: Re: INN 2.5.3 - extending nnrpd external authentication timeout Date: Wed, 04 Feb 2015 22:03:08 +0100 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <55n4da9vq2am8l2et0laqmvq3ibnrne15l@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.20150207.mbox.gz!border2.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!news-1.dfn.de!news.dfn.de!news.informatik.hu-berlin.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.nntp Organization: TrigoFACILE -- http://www.trigofacile.com/ Lines: 29 Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Trace: individual.net 3Fw0zUq9pg5tYyAvVDK6vQUGbdOH105b6E3fDA5iR38TpoEUk= Cancel-Lock: sha1:tPizZv5ZCodUVvIspjIwnEcoQDk= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; In-Reply-To: <55n4da9vq2am8l2et0laqmvq3ibnrne15l@4ax.com>