Re: Max Log Files

"Nikos Balkanas" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <000301ca5f28$033c3b50$02b2a8c0@tardis>
Hi,

The counter should not be affected by gwlib/log.c: log_reopen(). All openned 
files are closed and then openned without changing num_logfiles.

However, this would be an excellent place to do some debugging. You print 
logfiles[i].filename from there. This way when you have the problem you 
could check for anything suspicious by sending a kill -HUP.

BR,
Nikos
----- Original Message ----- 
From: "Alejandro Guerrieri" <[email protected]>
To: "Kannel Devel" <[email protected]>
Sent: Friday, November 06, 2009 10:17 PM
Subject: Max Log Files


> log.c, line 104:
>
> #define MAX_LOGFILES 128
>
> Is there any reason why this number is so low? After adding about 30  smsc 
> connections, I've started getting "Too many log files already  open, not 
> adding XXXXX" errors. This is probably because the  connections use more 
> than one file descriptor, or maybe the counter  doesn't get reset after 
> rotating logs or something?
>
> Regards,
>
> --
> Alejandro Guerrieri
> [email protected]
>
>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.