aboutsummaryrefslogtreecommitdiffstats
path: root/src/cfg_file.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-12-18 17:48:06 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-12-18 17:48:06 +0300
commitc6e6ea88a2e03609b0be013d2df0de1c6062712f (patch)
tree7492bb4cb0d47466c900319fa040b0d428560431 /src/cfg_file.h
parent1b1bcd6966f47a2568acee011dd4b9f18195d765 (diff)
downloadrspamd-c6e6ea88a2e03609b0be013d2df0de1c6062712f.tar.gz
rspamd-c6e6ea88a2e03609b0be013d2df0de1c6062712f.zip
* Add limits support to each worker (max open files and max core size)
* Fix dependency on lex and yacc sources
Diffstat (limited to 'src/cfg_file.h')
-rw-r--r--src/cfg_file.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cfg_file.h b/src/cfg_file.h
index bb07a40c5..16b59c45f 100644
--- a/src/cfg_file.h
+++ b/src/cfg_file.h
@@ -197,8 +197,10 @@ struct worker_conf {
uint16_t bind_port; /**< bind port in case of TCP socket */
uint16_t bind_family; /**< bind type (AF_UNIX or AF_INET) */
int count; /**< number of workers */
- GHashTable *params; /**< params for worker */
int listen_sock; /**< listening socket desctiptor */
+ uint32_t rlimit_nofile; /**< max files limit */
+ uint32_t rlimit_maxcore; /**< maximum core file size */
+ GHashTable *params; /**< params for worker */
GQueue *active_workers; /**< linked list of spawned workers */
gboolean has_socket; /**< whether we should make listening socket in main process */
};
@@ -267,6 +269,7 @@ struct config_file {
GList *views; /**< views */
GHashTable* domain_settings; /**< settings per-domains */
GHashTable* user_settings; /**< settings per-user */
+
};
/**