🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
5 messages
5 total messages Started by Tim Wed, 04 Feb 2015 18:00
INN 2.5.3 - extending nnrpd external authentication timeout
#86440
Author: Tim
Date: Wed, 04 Feb 2015 18:00
19 lines
1651 bytes
Hi all! 

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. 

Can I simply increase this value and recompile to extend the timeout,
or will the cause other problems? 

Or is there a configuration option for this that I've missed
somewhere? 

Thanks in advance! 

Tim. 
Re: INN 2.5.3 - extending nnrpd external authentication timeout
#86443
Author: Julien ÉLIE
Date: Wed, 04 Feb 2015 21:03
29 lines
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)
Re: INN 2.5.3 - extending nnrpd external authentication timeout
#86445
Author: Tim
Date: Sat, 07 Feb 2015 11:01
29 lines
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. 
Re: INN 2.5.3 - extending nnrpd external authentication timeout
#86446
Author: Julien ÉLIE
Date: Sat, 07 Feb 2015 20:04
17 lines
1844 bytes
Hi Tim,

>>> Can I simply increase this value and recompile to extend the timeout,
>>> or will the cause other problems?
>
> 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.

The size of the nnrpd binary should not change much with such a 
change...  What if you revert the change and rebuild INN just 
afterwards?  Is the size of the nnrpd binary increasing significantly?

-- 
Julien ÉLIE

« Il ne faut jamais parler sèchement à un Numide. » (Astérix)
Re: INN 2.5.3 - extending nnrpd external authentication timeout
#86450
Author: Tim
Date: Wed, 11 Feb 2015 13:16
26 lines
2311 bytes
On Sat, 07 Feb 2015 21:04:19 +0100, Julien ÉLIE
<iulius@nom-de-mon-site.com.invalid> wrote:

>Hi Tim,
>
>>>> Can I simply increase this value and recompile to extend the timeout,
>>>> or will the cause other problems?
>>
>> 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.
>
>The size of the nnrpd binary should not change much with such a 
>change...  What if you revert the change and rebuild INN just 
>afterwards?  Is the size of the nnrpd binary increasing significantly?

No, whenever I recompile, I get a binary that's approximaytely 15k
smaller than my original one. It's odd, because I just re-ran make
from the same directory as my original build, so I know the configure
options cannot possibly have changed. 

Anyway. it seems to be working and no users have complained yet, so
I'm happy. 

Thanks for your help! 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads