Displaying 2 results from an estimated 2 matches for "i_max".
Did you mean:
id_max
2013 Aug 01
1
[PATCH] quota-status: allow different action for messages that are too large (over maximum quota)
...user);
struct mail_namespace *ns;
struct mailbox *box;
struct quota_transaction_context *ctx;
- bool too_large;
int ret;
if (quser == NULL) {
@@ -64,7 +63,7 @@
box = mailbox_alloc(ns->list, "INBOX", 0);
ctx = quota_transaction_begin(box);
- ret = quota_test_alloc(ctx, I_MAX(1, mail_size), &too_large);
+ ret = quota_test_alloc(ctx, I_MAX(1, mail_size), too_large);
quota_transaction_rollback(&ctx);
mailbox_free(&box);
@@ -82,6 +81,7 @@
struct mail_storage_service_user *service_user;
struct mail_user *user;
const char *value = NULL, *error;
+ bool...
2015 Jan 22
2
[PATCH] increase fd_limit to max_client_limit automatically
...than required "
- "under max. load (%u < %u), because of %s",
- (unsigned int)fd_limit, max_client_limit,
- max_client_limit_source);
+ if (getrlimit(RLIMIT_NOFILE, &fd_limit) == 0) {
+#ifdef HAVE_SETRLIMIT
+ rlim_t old = fd_limit.rlim_cur;
+ fd_limit.rlim_cur = I_MAX(old, max_client_limit);
+ if (setrlimit(RLIMIT_NOFILE, &fd_limit) < 0)
+ fd_limit.rlim_cur = old;
+#endif
+ if (fd_limit.rlim_cur < (rlim_t)max_client_limit)
+ i_warning("fd limit (ulimit -n) is lower than required "
+ "under max. load (%u < %u), because of %...