diff options
-rw-r--r-- | sysklogd/Config.in | 10 | ||||
-rw-r--r-- | sysklogd/syslogd.c | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/sysklogd/Config.in b/sysklogd/Config.in index 0664be08d..0d819e195 100644 --- a/sysklogd/Config.in +++ b/sysklogd/Config.in | |||
@@ -50,6 +50,16 @@ config FEATURE_SYSLOGD_DUP | |||
50 | Option -D instructs syslogd to drop consecutive messages | 50 | Option -D instructs syslogd to drop consecutive messages |
51 | which are totally the same. | 51 | which are totally the same. |
52 | 52 | ||
53 | config FEATURE_SYSLOGD_READ_BUFFER_SIZE | ||
54 | int "Read buffer size in bytes" | ||
55 | default 256 | ||
56 | range 256 20000 | ||
57 | depends on SYSLOGD | ||
58 | help | ||
59 | This option sets the size of the syslog read buffer. | ||
60 | Actual memory usage increases around five times the | ||
61 | change done here. | ||
62 | |||
53 | config FEATURE_IPC_SYSLOG | 63 | config FEATURE_IPC_SYSLOG |
54 | bool "Circular Buffer support" | 64 | bool "Circular Buffer support" |
55 | default n | 65 | default n |
diff --git a/sysklogd/syslogd.c b/sysklogd/syslogd.c index 33203697d..6bc450bf9 100644 --- a/sysklogd/syslogd.c +++ b/sysklogd/syslogd.c | |||
@@ -46,7 +46,7 @@ | |||
46 | #undef SYSLOGD_WRLOCK | 46 | #undef SYSLOGD_WRLOCK |
47 | 47 | ||
48 | enum { | 48 | enum { |
49 | MAX_READ = 256, | 49 | MAX_READ = CONFIG_FEATURE_SYSLOGD_READ_BUFFER_SIZE, |
50 | DNS_WAIT_SEC = 2 * 60, | 50 | DNS_WAIT_SEC = 2 * 60, |
51 | }; | 51 | }; |
52 | 52 | ||