Searched refs:secs (Results 1 - 25 of 26) sorted by relevance

12

/dovecot/src/lib-settings/
H A Dtest-settings-parser.c19 { "59secs", 59 },
120 unsigned int i, secs, msecs; local
125 test_assert_idx(settings_get_time(tests[i].input, &secs, &error) == 0, i);
126 test_assert_idx(secs == tests[i].output, i);
136 test_assert_idx(settings_get_time(secs_errors[i], &secs, &error) < 0, i);
/dovecot/src/auth/
H A Dauth-penalty.c57 unsigned int i, secs = AUTH_PENALTY_INIT_SECS; local
60 secs *= 2;
61 return secs < AUTH_PENALTY_MAX_SECS ? secs : AUTH_PENALTY_MAX_SECS;
69 unsigned int secs, drop_penalty; local
89 secs = auth_penalty_to_secs(drop_penalty);
90 if (ioloop_time - last_penalty < secs)
H A Dauth-request-handler.c439 unsigned int secs = (unsigned int)(time(NULL) - request->last_access); local
444 "Request %u.%u timed out after %u secs, state=%d",
446 secs, request->state);
450 "(%u secs)", secs);
464 unsigned int secs; local
471 secs = auth_penalty_to_secs(penalty);
472 request->to_penalty = timeout_add(secs * 1000,
/dovecot/src/lib/
H A Dtime-util.c61 time_t secs; local
64 secs = tv1->tv_sec - tv2->tv_sec;
67 secs--;
70 return ((long long)secs * 1000000LL) + usecs;
/dovecot/src/master/
H A Dservice.h187 void service_throttle(struct service *service, unsigned int secs);
190 unsigned int secs);
H A Dmain.c587 time_t secs; local
594 secs = old_time - new_time + 1;
595 if (secs > SERVICE_TIME_MOVED_BACKWARDS_MAX_THROTTLE_SECS)
596 secs = SERVICE_TIME_MOVED_BACKWARDS_MAX_THROTTLE_SECS;
597 services_throttle_time_sensitives(services, secs);
599 "%"PRIdTIME_T" secs until new services are launched again.",
600 old_time - new_time, secs);
H A Dservice.c706 void service_throttle(struct service *service, unsigned int secs) argument
715 service->to_throttle = timeout_add(secs * 1000,
720 unsigned int secs)
728 service_throttle(service, secs);
719 services_throttle_time_sensitives(struct service_list *list, unsigned int secs) argument
/dovecot/src/lib-fs/
H A Dfs-wrapper.h22 int fs_wrapper_lock(struct fs_file *file, unsigned int secs,
H A Dfs-wrapper.c91 int fs_wrapper_lock(struct fs_file *file, unsigned int secs, argument
94 return fs_lock(file->parent, secs, lock_r);
H A Dfs-posix.c605 fs_posix_lock(struct fs_file *_file, unsigned int secs, struct fs_lock **lock_r) argument
622 if (secs == 0) {
628 FILE_LOCK_METHOD_FLOCK, secs,
641 dotlock_set.timeout = secs;
644 secs == 0 ? 0 :
H A Dfs-randomfail.c381 fs_randomfail_lock(struct fs_file *_file, unsigned int secs, struct fs_lock **lock_r) argument
385 return fs_lock(_file->parent, secs, lock_r);
H A Dfs-api-private.h56 int (*lock)(struct fs_file *file, unsigned int secs,
H A Dfs-api.h343 int fs_lock(struct fs_file *file, unsigned int secs, struct fs_lock **lock_r);
H A Dfs-test.c187 fs_test_lock(struct fs_file *_file, unsigned int secs ATTR_UNUSED,
H A Dfs-api.c871 int fs_lock(struct fs_file *file, unsigned int secs, struct fs_lock **lock_r) argument
876 ret = file->fs->v.lock(file, secs, lock_r);
/dovecot/src/director/
H A Ddirector-request.c54 unsigned int secs; local
57 str_printfa(str, "Timeout because %s - queued for %u secs (",
64 secs = ioloop_time - request->dir->ring_last_sync_time;
66 str_printfa(str, "Ring synced for %u secs", secs);
68 str_printfa(str, "Ring not synced for %u secs", secs);
74 str_printfa(str, ", user refreshed %u secs ago",
H A Dlogin-connection.c143 unsigned int secs; local
164 secs = dir->set->director_user_expire / 2;
167 str_append(str, dec2str_buf(secs_buf, secs));
/dovecot/src/imap/
H A Dcmd-idle.c196 unsigned int secs = ctx->client->set->imap_hibernate_timeout; local
200 if (secs == 0)
204 timeout_add(secs * 1000, idle_hibernate_timeout, ctx);
H A Dcmd-append.c58 unsigned int secs = ioloop_time - ctx->started; local
60 str_printfa(str, "Disconnected in APPEND (%u msgs, %u secs",
61 ctx->count, secs);
/dovecot/src/login-common/
H A Dclient-common.c90 unsigned int secs; local
93 secs = ioloop_time - client->auth_finished;
96 "Timeout while finishing login (waited %u secs)", secs);
104 secs = ioloop_time - client->created;
111 client_proxy_get_state(client), secs);
953 "(disconnected before auth was ready, waited %u secs)",
961 return t_strdup_printf("(no auth attempts in %u secs)",
972 "waited %u secs)", auth_secs);
976 "waited %u secs)", auth_sec
[all...]
/dovecot/src/lib-dict/
H A Ddict-redis.c131 "redis: Commit timed out in %u.%03u secs",
359 unsigned int secs; local
405 if (str_to_uint(value, &secs) < 0 || secs == 0) {
482 "redis: Lookup timed out in %u.%03u secs",
/dovecot/src/lib-storage/
H A Dmail-storage.c2892 unsigned int secs)
2894 return storage->set->mail_max_lock_timeout == 0 ? secs :
2895 I_MIN(secs, storage->set->mail_max_lock_timeout);
2918 unsigned int secs; local
2942 } else if (settings_get_time(str, &secs, &error) == 0) {
2943 *timestamp_r = ioloop_time - secs;
2891 mail_storage_get_lock_timeout(struct mail_storage *storage, unsigned int secs) argument
H A Dmail-storage-private.h836 unsigned int secs);
/dovecot/src/lib-storage/index/
H A Dindex-search.c1518 unsigned int msecs, secs; local
1530 secs = (msecs / (percentage / 100.0) - msecs) / 1000;
1537 secs/60, secs%60);
/dovecot/src/lib-sql/
H A Ddriver-pgsql.c208 unsigned int secs = ioloop_time - db->api.last_connect_try; local
211 pgsql_prefix(db), secs, db->connect_state);

Completed in 68 milliseconds

12