Home
last modified time | relevance | path

Searched refs:cur_ts (Results 1 – 20 of 20) sorted by relevance

/lighttpd1.4/src/
H A Dmod_vhostdb.c321 …ree * const t, int * const keys, int * const ndx, const time_t max_age, const unix_time64_t cur_ts) in mod_vhostdb_tag_old_entries() argument
325 mod_vhostdb_tag_old_entries(t->left, keys, ndx, max_age, cur_ts); in mod_vhostdb_tag_old_entries()
327 mod_vhostdb_tag_old_entries(t->right, keys, ndx, max_age, cur_ts); in mod_vhostdb_tag_old_entries()
331 if (cur_ts - ve->ctime > max_age) in mod_vhostdb_tag_old_entries()
337 …vhostdb_periodic_cleanup(splay_tree **sptree_ptr, const time_t max_age, const unix_time64_t cur_ts) in mod_vhostdb_periodic_cleanup() argument
345 mod_vhostdb_tag_old_entries(sptree, keys, &max_ndx, max_age, cur_ts); in mod_vhostdb_periodic_cleanup()
361 const unix_time64_t cur_ts = log_monotonic_secs; in TRIGGER_FUNC() local
362 if (cur_ts & 0x7) return HANDLER_GO_ON; /*(continue once each 8 sec)*/ in TRIGGER_FUNC()
375 mod_vhostdb_periodic_cleanup(&vc->sptree, vc->max_age, cur_ts); in TRIGGER_FUNC()
H A Dmod_auth.c163 if (cur_ts - ae->ctime > max_age) in mod_auth_tag_old_entries()
193 const unix_time64_t cur_ts = log_monotonic_secs; in TRIGGER_FUNC() local
981 buffer_append_uint_hex(b, (uintmax_t)cur_ts); in mod_auth_append_nonce()
1002 iov[0].iov_len = li_itostrn(a1, sizeof(a1), cur_ts); in mod_auth_append_nonce()
1006 iov[0].iov_base = &cur_ts; in mod_auth_append_nonce()
1007 iov[0].iov_len = sizeof(cur_ts); in mod_auth_append_nonce()
1115 mod_auth_append_nonce(b, cur_ts, require, dalgo, NULL); in mod_auth_digest_authentication_info()
1456 const unix_time64_t cur_ts = log_epoch_secs; in mod_auth_digest_validate_nonce() local
1457 if (nonce[i] != ':' || ts > cur_ts || cur_ts - ts > 600) { /*(10 mins)*/ in mod_auth_digest_validate_nonce()
1462 if (cur_ts - ts > 540) /*(9 mins)*/ in mod_auth_digest_validate_nonce()
[all …]
H A Dmod_expire.c262 const unix_time64_t cur_ts = log_epoch_secs; in mod_expire_set_header() local
265 expires += cur_ts; in mod_expire_set_header()
275 if (expires < cur_ts) expires = cur_ts; in mod_expire_set_header()
292 buffer_append_int(vb, expires - cur_ts); in mod_expire_set_header()
H A Dmod_status.c173 …d_status_html_rtable_r (buffer * const b, const request_st * const r, const unix_time64_t cur_ts) { in mod_status_html_rtable_r() argument
203 buffer_append_int(b, cur_ts - r->start_hp.tv_sec); in mod_status_html_rtable_r()
234 …_status_html_rtable (request_st * const rq, const server * const srv, const unix_time64_t cur_ts) { in mod_status_html_rtable() argument
248 mod_status_html_rtable_r(b, r, cur_ts); in mod_status_html_rtable()
256 mod_status_html_rtable_r(b, h2c->r[j], cur_ts); in mod_status_html_rtable()
268 const unix_time64_t cur_ts = log_epoch_secs; in mod_status_handle_server_status_html() local
401 ts = cur_ts - srv->startup_ts; in mod_status_handle_server_status_html()
448 avg = (double)p->abs_requests / (cur_ts - srv->startup_ts); in mod_status_handle_server_status_html()
452 avg = (double)p->abs_traffic_out / (cur_ts - srv->startup_ts); in mod_status_handle_server_status_html()
533 mod_status_html_rtable(r, srv, cur_ts); in mod_status_handle_server_status_html()
H A Dmod_wolfssl.c287 const unix_time64_t cur_ts = log_epoch_secs; in tlsext_ticket_key_get() local
302 const unix_time64_t cur_ts = log_epoch_secs; in tlsext_ticket_key_find() local
425 if (detect_retrograde_ts > cur_ts && detect_retrograde_ts - cur_ts > 28800) in mod_openssl_session_ticket_key_check()
427 detect_retrograde_ts = cur_ts; in mod_openssl_session_ticket_key_check()
435 tlsext_ticket_wipe_expired(cur_ts); in mod_openssl_session_ticket_key_check()
438 rotate = mod_openssl_session_ticket_key_generate(cur_ts, cur_ts+86400); in mod_openssl_session_ticket_key_check()
442 stek_rotate_ts = cur_ts; in mod_openssl_session_ticket_key_check()
1530 pc->ssl_stapling_loadts = cur_ts; in mod_openssl_reload_stapling_file()
1536 pc->ssl_stapling_nextts = cur_ts + 3600; in mod_openssl_reload_stapling_file()
1539 else if (pc->ssl_stapling_nextts < cur_ts) { in mod_openssl_reload_stapling_file()
[all …]
H A Dstat_cache.c693 const unix_time64_t cur_ts = log_monotonic_secs; in fam_dir_monitor() local
743 fam_dir->stat_ts = cur_ts; in fam_dir_monitor()
769 fam_dir->stat_ts= cur_ts; in fam_dir_monitor()
1284 const unix_time64_t cur_ts = log_monotonic_secs; in stat_cache_get_entry() local
1299 if (sce->stat_ts == cur_ts) { in stat_cache_get_entry()
1313 if (cur_ts - sce->stat_ts < 16) { in stat_cache_get_entry()
1384 sce->stat_ts = cur_ts; in stat_cache_get_entry()
1390 sce->stat_ts = cur_ts; in stat_cache_get_entry()
1488 stat_cache_tag_old_entries(t->left, keys, ndx, max_age, cur_ts); in stat_cache_tag_old_entries()
1490 stat_cache_tag_old_entries(t->right, keys, ndx, max_age, cur_ts); in stat_cache_tag_old_entries()
[all …]
H A Dmod_openssl.c270 const unix_time64_t cur_ts = log_epoch_secs; in tlsext_ticket_key_get() local
285 const unix_time64_t cur_ts = log_epoch_secs; in tlsext_ticket_key_find() local
436 if (detect_retrograde_ts > cur_ts && detect_retrograde_ts - cur_ts > 28800) in mod_openssl_session_ticket_key_check()
438 detect_retrograde_ts = cur_ts; in mod_openssl_session_ticket_key_check()
446 tlsext_ticket_wipe_expired(cur_ts); in mod_openssl_session_ticket_key_check()
449 rotate = mod_openssl_session_ticket_key_generate(cur_ts, cur_ts+86400); in mod_openssl_session_ticket_key_check()
453 stek_rotate_ts = cur_ts; in mod_openssl_session_ticket_key_check()
1593 pc->ssl_stapling_loadts = cur_ts; in mod_openssl_reload_stapling_file()
1599 pc->ssl_stapling_nextts = cur_ts + 3600; in mod_openssl_reload_stapling_file()
1602 else if (pc->ssl_stapling_nextts < cur_ts) { in mod_openssl_reload_stapling_file()
[all …]
H A Dmod_gnutls.c368 if (detect_retrograde_ts > cur_ts && detect_retrograde_ts - cur_ts > 28800) in mod_gnutls_session_ticket_key_check()
370 detect_retrograde_ts = cur_ts; in mod_gnutls_session_ticket_key_check()
377 stek_rotate_ts = cur_ts; in mod_gnutls_session_ticket_key_check()
406 if (stek->expire_ts < cur_ts) in mod_gnutls_session_ticket_key_check()
412 stek_rotate_ts = cur_ts; in mod_gnutls_session_ticket_key_check()
1002 pc->ssl_stapling_loadts = cur_ts; in mod_gnutls_reload_stapling_file()
1008 pc->ssl_stapling_nextts = cur_ts + 3600; in mod_gnutls_reload_stapling_file()
1011 else if (pc->ssl_stapling_nextts < cur_ts) in mod_gnutls_reload_stapling_file()
1021 if (pc->ssl_stapling_nextts > cur_ts + 256) in mod_gnutls_refresh_stapling_file()
1026 if (pc->ssl_stapling_nextts < cur_ts) in mod_gnutls_refresh_stapling_file()
[all …]
H A Dconnections.c1367 if (cur_ts - con->close_timeout_ts > HTTP_LINGER_TIMEOUT) { in connection_check_timeout()
1386 if (cur_ts - con->read_idle_ts > rr->conf.max_read_idle) { in connection_check_timeout()
1402 if (cur_ts - con->write_request_ts in connection_check_timeout()
1424 if (cur_ts - con->read_idle_ts > con->keep_alive_idle) { in connection_check_timeout()
1442 if (cur_ts - con->read_idle_ts > r->conf.max_read_idle) { in connection_check_timeout()
1453 if (cur_ts - con->read_idle_ts > con->keep_alive_idle) { in connection_check_timeout()
1482 if (cur_ts - con->write_request_ts > 60) { in connection_check_timeout()
1485 con->fd, cur_ts - con->write_request_ts); in connection_check_timeout()
1489 if (cur_ts - con->write_request_ts > r->conf.max_write_idle) { in connection_check_timeout()
1510 if (0 == (t_diff = cur_ts - con->connection_start)) t_diff = 1; in connection_check_timeout()
[all …]
H A Dmod_userdir.c187 const unix_time64_t cur_ts = log_monotonic_secs; in mod_userdir_docroot_construct() local
191 if (cur_ts - p->cache_ts[i] < 60 && p->cache_user[i].used in mod_userdir_docroot_construct()
218 p->cache_ts[cached] = cur_ts; in mod_userdir_docroot_construct()
H A Dconnections.h17 void connection_periodic_maint (server *srv, unix_time64_t cur_ts);
H A Dserver.c315 const unix_time64_t cur_ts = log_epoch_secs; in server_epoch_secs() local
319 if (new_ts_adj < cur_ts || new_ts_adj - cur_ts > 300) { /*(5 mins)*/ in server_epoch_secs()
322 (long long)((int64_t)new_ts_adj - (int64_t)cur_ts)); in server_epoch_secs()
325 if (delta && (new_ts_adj > cur_ts in server_epoch_secs()
326 ? new_ts_adj-cur_ts in server_epoch_secs()
327 : cur_ts-new_ts_adj) > delta) { in server_epoch_secs()
H A Dmod_nss.c1059 mod_nss_reload_stapling_file (server *srv, plugin_cert *pc, const unix_time64_t cur_ts) in mod_nss_reload_stapling_file() argument
1094 pc->ssl_stapling_loadts = cur_ts; in mod_nss_reload_stapling_file()
1100 pc->ssl_stapling_nextts = cur_ts + 3600; in mod_nss_reload_stapling_file()
1103 else if (pc->ssl_stapling_nextts < cur_ts) in mod_nss_reload_stapling_file()
1113 if (pc->ssl_stapling_nextts > cur_ts + 256) in mod_nss_refresh_stapling_file()
1118 if (pc->ssl_stapling_nextts < cur_ts) in mod_nss_refresh_stapling_file()
1122 return mod_nss_reload_stapling_file(srv, pc, cur_ts); in mod_nss_refresh_stapling_file()
1140 mod_nss_refresh_stapling_file(srv, pc, cur_ts); in mod_nss_refresh_stapling_files()
2687 const unix_time64_t cur_ts = log_epoch_secs; in TRIGGER_FUNC() local
2688 if (cur_ts & 0x3f) return HANDLER_GO_ON; /*(continue once each 64 sec)*/ in TRIGGER_FUNC()
[all …]
H A Dmod_wstunnel.c600 const unix_time64_t cur_ts = log_monotonic_secs + 1; in TRIGGER_FUNC() local
613 if (cur_ts - con->read_idle_ts > r->conf.max_read_idle) { in TRIGGER_FUNC()
620 con->read_idle_ts = cur_ts; in TRIGGER_FUNC()
626 && (int32_t)hctx->conf.ping_interval + hctx->ping_ts < cur_ts) { in TRIGGER_FUNC()
627 hctx->ping_ts = cur_ts; in TRIGGER_FUNC()
H A Dresponse.c163 const unix_time64_t cur_ts = log_epoch_secs; in http_response_write_header() local
164 if (__builtin_expect ( (tlast != cur_ts), 0)) in http_response_write_header()
165 http_date_time_to_str(tstr+8, sizeof(tstr)-8, (tlast = cur_ts)); in http_response_write_header()
H A Dmod_mbedtls.c343 mod_mbedtls_session_ticket_key_check (plugin_data *p, const unix_time64_t cur_ts) in mod_mbedtls_session_ticket_key_check() argument
351 stek_rotate_ts = cur_ts; in mod_mbedtls_session_ticket_key_check()
355 if (stek->active_ts != 0 && stek->active_ts - 63 <= cur_ts) { in mod_mbedtls_session_ticket_key_check()
375 key->generation_time = (uint32_t)cur_ts; in mod_mbedtls_session_ticket_key_check()
382 key->generation_time = cur_ts > (unix_time64_t)ctx->ticket_lifetime in mod_mbedtls_session_ticket_key_check()
383 ? cur_ts - ctx->ticket_lifetime - 1 in mod_mbedtls_session_ticket_key_check()
2711 const unix_time64_t cur_ts = log_epoch_secs; in TRIGGER_FUNC() local
2712 if (cur_ts & 0x3f) return HANDLER_GO_ON; /*(continue once each 64 sec)*/ in TRIGGER_FUNC()
2717 mod_mbedtls_session_ticket_key_check(p, cur_ts); in TRIGGER_FUNC()
H A Dgw_backend.c271 const unix_time64_t cur_ts = log_monotonic_secs; in gw_proc_connect_error() local
278 proc->disabled_until = cur_ts + host->disable_time; in gw_proc_connect_error()
309 proc->disabled_until = cur_ts + host->disable_time; in gw_proc_connect_error()
320 proc->disabled_until = cur_ts + host->disable_time; in gw_proc_connect_error()
2918 const unix_time64_t cur_ts = log_monotonic_secs; in gw_handle_waitpid_cb() local
2933 if (proc->disabled_until < cur_ts) { in gw_handle_waitpid_cb()
2937 proc->disabled_until = cur_ts; in gw_handle_waitpid_cb()
2951 proc->disabled_until = cur_ts; in gw_handle_waitpid_cb()
H A Dmod_accesslog.c722 const unix_time64_t cur_ts = log_epoch_secs; in accesslog_append_time() local
723 if (parsed_format->last_generated_accesslog_ts == cur_ts) { in accesslog_append_time()
727 t = parsed_format->last_generated_accesslog_ts = cur_ts; in accesslog_append_time()
H A Dh2.c2282 const unix_time64_t cur_ts = log_epoch_secs; in h2_send_headers() local
2283 if (__builtin_expect ( (tlast != cur_ts), 0)) in h2_send_headers()
2284 http_date_time_to_str(tstr+6, sizeof(tstr)-6, (tlast = cur_ts)); in h2_send_headers()
/lighttpd1.4/
H A DNEWS1302 * [multiple] reduce direct use of srv->cur_ts