Searched refs:msecs (Results 1 - 25 of 28) sorted by relevance

12

/dovecot/src/lib/
H A Dtime-util.h18 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 Dioloop.h110 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 Dioloop-kqueue.c119 int ret, i, msecs; local
122 msecs = io_loop_get_wait_time(ioloop, &tv);
137 if (msecs < 0)
139 usleep(msecs * 1000);
H A Dioloop-epoll.c172 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 Dioloop-poll.c150 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 Dioloop.c232 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 Dioloop-private.h71 unsigned int msecs; member in struct:timeout
H A Dnet.h81 int net_connect_unix_with_retries(const char *path, unsigned int msecs);
H A Dconnection.c431 unsigned int msecs = local
434 msecs/1000, msecs%1000);
/dovecot/src/lib-settings/
H A Dtest-settings-parser.c69 { "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 Duserdb-passwd.c41 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 Ddns-lookup.h26 unsigned int msecs; member in struct:dns_lookup_result
H A Ddns-lookup.c136 lookup->result.msecs = diff;
/dovecot/src/lib-http/
H A Dhttp-client.h331 unsigned int msecs);
337 unsigned int msecs);
367 unsigned int msecs);
H A Dhttp-client-queue.c384 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 Dhttp-client-connection.c411 "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 Dhttp-client-request.c529 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 Dsmtp-client-connection.c229 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 Ddriver-pgsql.c219 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 Ddriver-cassandra.c922 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 Dprogram-client-remote.c379 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 Ddoveadm-connection.c577 int msecs = timeval_diff_msecs(&ioloop_timeval, &cmd->start_time); local
580 msecs / 1000, msecs % 1000, cmd->max_moving_users);
H A Ddirector-connection.c240 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 Ddict-client.c870 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 Dindex-search.c1518 unsigned int msecs, secs; local
1528 msecs = timeval_diff_msecs(&ioloop_timeval,
1530 secs = (msecs / (percentage / 100.0) - msecs) / 1000;

Completed in 72 milliseconds

12