/dovecot/src/lib/ |
H A D | time-util.h | 18 timeval_add_msecs(struct timeval *tv, unsigned int msecs) argument 20 tv->tv_sec += msecs / 1000; 21 tv->tv_usec += (msecs % 1000) * 1000; 29 timeval_sub_msecs(struct timeval *tv, unsigned int msecs) argument 31 tv->tv_sec -= msecs / 1000; 32 tv->tv_usec -= (msecs % 1000) * 1000;
|
H A D | ioloop.h | 110 timeout_add(unsigned int msecs, const char *source_filename, 113 #define timeout_add(msecs, callback, context) \ 114 timeout_add(msecs, __FILE__, __LINE__ + \ 116 COMPILE_ERROR_IF_TRUE(__builtin_constant_p(msecs) && \ 117 ((msecs) > 0 && (msecs) < 1000)), \ 120 timeout_add_to(struct ioloop *ioloop, unsigned int msecs, 123 #define timeout_add_to(ioloop, msecs, callback, context) \ 124 timeout_add_to(ioloop, msecs, __FILE__, __LINE__ + \ 126 COMPILE_ERROR_IF_TRUE(__builtin_constant_p(msecs) [all...] |
H A D | ioloop-kqueue.c | 119 int ret, i, msecs; local 122 msecs = io_loop_get_wait_time(ioloop, &tv); 137 if (msecs < 0) 139 usleep(msecs * 1000);
|
H A D | ioloop-epoll.c | 172 int msecs, ret, i, j; local 178 msecs = io_loop_get_wait_time(ioloop, &tv); 182 ret = epoll_wait(ctx->epfd, events, events_count, msecs); 188 if (msecs < 0) 190 usleep(msecs*1000);
|
H A D | ioloop-poll.c | 150 int msecs, ret; local 154 msecs = io_loop_get_wait_time(ioloop, &tv); 156 if (msecs > 1000) { 160 msecs = 1000; 164 ret = poll(ctx->fds, ctx->fds_pos, msecs);
|
H A D | ioloop.c | 232 timeout->next_run.tv_sec += timeout->msecs/1000; 233 timeout->next_run.tv_usec += (timeout->msecs%1000)*1000; 266 struct timeout *timeout_add_to(struct ioloop *ioloop, unsigned int msecs, argument 275 timeout->msecs = msecs; 277 if (msecs > 0) { 290 struct timeout *timeout_add(unsigned int msecs, const char *source_filename, argument 294 return timeout_add_to(current_ioloop, msecs, 301 timeout_add_short_to(struct ioloop *ioloop, unsigned int msecs, argument 305 return timeout_add_to(ioloop, msecs, 312 timeout_add_short(unsigned int msecs, const char *source_filename, unsigned int source_linenum, timeout_callback_t *callback, void *context) argument 478 int msecs; local [all...] |
H A D | ioloop-private.h | 71 unsigned int msecs; member in struct:timeout
|
H A D | net.h | 81 int net_connect_unix_with_retries(const char *path, unsigned int msecs);
|
H A D | connection.c | 431 unsigned int msecs = local 434 msecs/1000, msecs%1000);
|
/dovecot/src/lib-settings/ |
H A D | test-settings-parser.c | 69 { "123456msecs", 123456 }, 120 unsigned int i, secs, msecs; local 128 test_assert_idx(settings_get_time_msecs(tests[i].input, &msecs, &error) == 0, i); 129 test_assert_idx(msecs == tests[i].output*1000, i); 132 test_assert_idx(settings_get_time_msecs(msecs_tests[i].input, &msecs, &error) == 0, i); 133 test_assert_idx(msecs == msecs_tests[i].output, i); 138 test_assert_idx(settings_get_time_msecs(msecs_errors[i], &msecs, &error) < 0, i);
|
/dovecot/src/auth/ |
H A D | userdb-passwd.c | 41 unsigned int msecs, percentage; local 46 msecs = timeval_diff_msecs(&end_tv, start_tv); 47 if (msecs >= PASSWD_SLOW_WARN_MSECS) { 49 auth_request->user, msecs/1000); 55 if (msecs < PASSWD_SLOW_MASTER_WARN_MSECS) {
|
/dovecot/src/lib-dns/ |
H A D | dns-lookup.h | 26 unsigned int msecs; member in struct:dns_lookup_result
|
H A D | dns-lookup.c | 136 lookup->result.msecs = diff;
|
/dovecot/src/lib-http/ |
H A D | http-client.h | 331 unsigned int msecs); 337 unsigned int msecs); 367 unsigned int msecs);
|
H A D | http-client-queue.c | 384 unsigned int msecs; local 409 msecs = client->set.soft_connect_timeout_msecs; 410 if (!http_client_queue_is_last_connect_ip(queue) && msecs > 0 && 412 queue->to_connect = timeout_add_to(client->ioloop, msecs, 871 int msecs; local 874 msecs = (usecs + 999) / 1000; 878 queue->to_delayed = timeout_add_to(client->ioloop, msecs, 944 "Delayed request %s%s submitted (time remaining: %d msecs)",
|
H A D | http-client-connection.c | 411 "Lost peer; going idle (timeout = %u msecs)", 477 "No more requests queued; going idle (timeout = %u msecs)", 670 unsigned int msecs; local 675 msecs = timeval_diff_msecs(&ioloop_timeval, 679 _conn->name, msecs/1000, msecs%1000); 681 msecs = timeval_diff_msecs(&ioloop_timeval, 685 _conn->name, msecs/1000, msecs%1000); 1555 unsigned int msecs; local [all...] |
H A D | http-client-request.c | 529 unsigned int msecs) 534 req->timeout_msecs = msecs; 548 unsigned int msecs) 553 req->attempt_timeout_msecs = msecs; 607 unsigned int msecs) 610 timeval_add_msecs(&req->release_time, msecs); 528 http_client_request_set_timeout_msecs(struct http_client_request *req, unsigned int msecs) argument 547 http_client_request_set_attempt_timeout_msecs(struct http_client_request *req, unsigned int msecs) argument 606 http_client_request_delay_msecs(struct http_client_request *req, unsigned int msecs) argument
|
/dovecot/src/lib-smtp/ |
H A D | smtp-client-connection.c | 229 unsigned int msecs = conn->set.command_timeout_msecs; local 235 if (msecs == 0) { 250 (msecs, smtp_client_command_timeout, conn); 257 unsigned int msecs = conn->set.command_timeout_msecs; local 263 if (msecs == 0) { 1384 unsigned int msecs; local 1395 msecs = conn->set.connect_timeout_msecs; 1396 if (msecs == 0) 1397 msecs = conn->set.command_timeout_msecs; 1399 if (msecs > [all...] |
/dovecot/src/lib-sql/ |
H A D | driver-pgsql.c | 219 int msecs; local 242 msecs = timeval_diff_msecs(&ioloop_timeval, &tv_start); 243 if (msecs > PGSQL_DNS_WARN_MSECS) { 245 pgsql_prefix(db), msecs/1000, msecs % 1000);
|
H A D | driver-cassandra.c | 922 int msecs; local 927 msecs = timeval_diff_msecs(&ioloop_timeval, &result->start_time); 938 result->query, (int)errsize, errmsg, msecs/1000, msecs%1000, 1011 unsigned int i, msecs = CASSANDRA_FALLBACK_FIRST_RETRY_MSECS; local 1018 msecs *= 2; 1019 if (msecs >= CASSANDRA_FALLBACK_MAX_RETRY_MSECS) { 1020 msecs = CASSANDRA_FALLBACK_MAX_RETRY_MSECS; 1024 /* If last primary query sent timestamp + msecs is older than current 1037 timeval_add_msecs(&tv, msecs); [all...] |
/dovecot/src/lib-program-client/ |
H A D | program-client-remote.c | 379 i_debug("Trying to connect %s (timeout %u msecs)", 448 if (pclient->set.client_connect_timeout_msecs <= result->msecs) { 454 pclient->set.client_connect_timeout_msecs -= result->msecs;
|
/dovecot/src/director/ |
H A D | doveadm-connection.c | 577 int msecs = timeval_diff_msecs(&ioloop_timeval, &cmd->start_time); local 580 msecs / 1000, msecs % 1000, cmd->max_moving_users);
|
H A D | director-connection.c | 240 int msecs = timeval_diff_msecs(&ioloop_timeval, &start_time); local 241 str_printfa(reason, " (%u.%03u secs, ", msecs/1000, msecs%1000); 252 unsigned int msecs; local 254 msecs = conn->synced || !conn->handshake_received ? 259 conn->to_ping = timeout_add(msecs, director_connection_ping, conn);
|
/dovecot/src/lib-dict/ |
H A D | dict-client.c | 870 dict_warnings_sec(const struct client_dict_cmd *cmd, int msecs, argument 877 str_printfa(str, "%d.%03d secs (%s", msecs/1000, msecs%1000,
|
/dovecot/src/lib-storage/index/ |
H A D | index-search.c | 1518 unsigned int msecs, secs; local 1528 msecs = timeval_diff_msecs(&ioloop_timeval, 1530 secs = (msecs / (percentage / 100.0) - msecs) / 1000;
|