syslogd: make maximum message length configurable
Signed-off-by: Janne Kiviluoto <janne.kiviluoto@bluegiga.com> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
8d22ca81c3
commit
c897dfe011
@ -50,6 +50,16 @@ config FEATURE_SYSLOGD_DUP
|
|||||||
Option -D instructs syslogd to drop consecutive messages
|
Option -D instructs syslogd to drop consecutive messages
|
||||||
which are totally the same.
|
which are totally the same.
|
||||||
|
|
||||||
|
config FEATURE_SYSLOGD_READ_BUFFER_SIZE
|
||||||
|
int "Read buffer size in bytes"
|
||||||
|
default 256
|
||||||
|
range 256 20000
|
||||||
|
depends on SYSLOGD
|
||||||
|
help
|
||||||
|
This option sets the size of the syslog read buffer.
|
||||||
|
Actual memory usage increases around five times the
|
||||||
|
change done here.
|
||||||
|
|
||||||
config FEATURE_IPC_SYSLOG
|
config FEATURE_IPC_SYSLOG
|
||||||
bool "Circular Buffer support"
|
bool "Circular Buffer support"
|
||||||
default n
|
default n
|
||||||
|
@ -46,7 +46,7 @@
|
|||||||
#undef SYSLOGD_WRLOCK
|
#undef SYSLOGD_WRLOCK
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
MAX_READ = 256,
|
MAX_READ = CONFIG_FEATURE_SYSLOGD_READ_BUFFER_SIZE,
|
||||||
DNS_WAIT_SEC = 2 * 60,
|
DNS_WAIT_SEC = 2 * 60,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user