/openssl/ssl/quic/ |
H A D | quic_thread_assist.c | 31 OSSL_TIME deadline; in assist_thread_main() local 36 deadline = ossl_quic_reactor_get_tick_deadline(rtor); in assist_thread_main() 38 && !ossl_time_is_zero(deadline) in assist_thread_main() 39 && !ossl_time_is_infinite(deadline)) { in assist_thread_main() 44 deadline = ossl_time_add(ossl_time_subtract(deadline, in assist_thread_main() 48 ossl_crypto_condvar_wait_timeout(qta->cv, m, deadline); in assist_thread_main()
|
H A D | quic_reactor.c | 166 OSSL_TIME deadline, in poll_two_fds() argument 204 || !ossl_time_is_infinite(deadline))) in poll_two_fds() 219 if (ossl_time_is_infinite(deadline)) { in poll_two_fds() 227 timeout = ossl_time_subtract(deadline, now); in poll_two_fds() 265 if (!ossl_assert(npfd != 0 || !ossl_time_is_infinite(deadline))) in poll_two_fds() 275 if (ossl_time_is_infinite(deadline)) { in poll_two_fds() 279 timeout = ossl_time_subtract(deadline, now); in poll_two_fds() 323 OSSL_TIME deadline, in poll_two_descriptors() argument 332 return poll_two_fds(rfd, r_want_read, wfd, w_want_write, deadline, mutex); in poll_two_descriptors()
|
H A D | quic_channel.c | 1851 OSSL_TIME now, deadline; in ossl_quic_channel_subtick() local 1940 if (!ossl_time_is_zero(deadline) in ossl_quic_channel_subtick() 2505 OSSL_TIME deadline; in ch_determine_next_tick_deadline() local 2512 if (ossl_time_is_zero(deadline)) in ch_determine_next_tick_deadline() 2521 deadline = ossl_time_min(deadline, in ch_determine_next_tick_deadline() 2532 deadline = ossl_time_min(deadline, ch->ping_deadline); in ch_determine_next_tick_deadline() 2535 deadline = ossl_time_min(deadline, in ch_determine_next_tick_deadline() 2540 deadline = ossl_time_min(deadline, in ch_determine_next_tick_deadline() 2543 deadline = ossl_time_min(deadline, in ch_determine_next_tick_deadline() 2548 deadline = ossl_time_min(deadline, ch->rxku_update_end_deadline); in ch_determine_next_tick_deadline() [all …]
|
H A D | quic_ackm.c | 600 void (*loss_detection_deadline_cb)(OSSL_TIME deadline, void *arg); 603 void (*ack_deadline_cb)(OSSL_TIME deadline, int pkt_space, void *arg); 890 OSSL_TIME deadline) in ackm_set_loss_detection_timer_actual() argument 892 ackm->loss_detection_deadline = deadline; in ackm_set_loss_detection_timer_actual() 895 ackm->loss_detection_deadline_cb(deadline, in ackm_set_loss_detection_timer_actual() 1449 OSSL_TIME deadline) in ackm_set_flush_deadline() argument 1451 ackm->rx_ack_flush_deadline[pkt_space] = deadline; in ackm_set_flush_deadline() 1662 void (*fn)(OSSL_TIME deadline, in ossl_ackm_set_loss_detection_deadline_callback() argument 1671 void (*fn)(OSSL_TIME deadline, in ossl_ackm_set_ack_deadline_callback() argument
|
H A D | quic_txp.c | 3131 OSSL_TIME deadline = ossl_time_infinite(); in ossl_quic_tx_packetiser_get_deadline() local 3145 deadline = ossl_time_min(deadline, in ossl_quic_tx_packetiser_get_deadline() 3151 deadline = ossl_time_min(deadline, in ossl_quic_tx_packetiser_get_deadline() 3154 return deadline; in ossl_quic_tx_packetiser_get_deadline()
|
H A D | quic_impl.c | 1085 OSSL_TIME deadline = ossl_time_infinite(); in ossl_quic_get_event_timeout() local 1093 deadline in ossl_quic_get_event_timeout() 1096 if (ossl_time_is_infinite(deadline)) { in ossl_quic_get_event_timeout() 1110 *tv = ossl_time_to_timeval(ossl_time_subtract(deadline, get_time(ctx.qc))); in ossl_quic_get_event_timeout()
|
/openssl/crypto/thread/arch/ |
H A D | thread_win.c | 145 static int determine_timeout(OSSL_TIME deadline, DWORD *w_timeout_p) in determine_timeout() argument 150 if (ossl_time_is_infinite(deadline)) { in determine_timeout() 156 delta = ossl_time_subtract(deadline, now); in determine_timeout() 347 static uint32_t obj_wait(HANDLE h, OSSL_TIME deadline) in obj_wait() argument 351 if (!determine_timeout(deadline, &timeout)) in obj_wait() 358 OSSL_TIME deadline) in ossl_crypto_condvar_wait_timeout() argument 400 if (obj_wait(cv->prewait_sema, deadline) != WAIT_OBJECT_0) { in ossl_crypto_condvar_wait_timeout() 428 rc = obj_wait(cv->sema, deadline); in ossl_crypto_condvar_wait_timeout() 555 OSSL_TIME deadline) in ossl_crypto_condvar_wait_timeout() argument 561 if (!determine_timeout(deadline, &timeout)) in ossl_crypto_condvar_wait_timeout()
|
H A D | thread_posix.c | 179 OSSL_TIME deadline) in ossl_crypto_condvar_wait_timeout() argument 184 if (ossl_time_is_infinite(deadline)) { in ossl_crypto_condvar_wait_timeout() 195 = ossl_time2seconds(deadline); in ossl_crypto_condvar_wait_timeout() 197 = (ossl_time2ticks(deadline) % OSSL_TIME_SECOND) / OSSL_TIME_NS; in ossl_crypto_condvar_wait_timeout()
|
H A D | thread_none.c | 66 OSSL_TIME deadline) in ossl_crypto_condvar_wait_timeout() argument
|
/openssl/doc/designs/ddd/ |
H A D | ddd-02-conn-nonblocking.c | 363 struct timeval start, now, deadline, t; in main() local 373 timeradd(&start, &timeout, &deadline); in main() 388 if (timercmp(&now, &deadline, >=)) in main() 407 struct timeval start, now, deadline, t; in main() local 417 timeradd(&start, &timeout, &deadline); in main() 432 if (timercmp(&now, &deadline, >=)) in main()
|
H A D | ddd-04-fd-nonblocking.c | 378 struct timeval start, now, deadline, t; in main() local 388 timeradd(&start, &timeout, &deadline); in main() 403 if (timercmp(&now, &deadline, >=)) in main() 422 struct timeval start, now, deadline, t; in main() local 432 timeradd(&start, &timeout, &deadline); in main() 446 if (timercmp(&now, &deadline, >=)) in main()
|
H A D | REPORT.md | 113 - The API to expose the event handling deadline for the QUIC engine
|
/openssl/doc/designs/quic-design/ |
H A D | quic-ackm.md | 29 - be notified when its loss detection deadline arrives 39 - It indicates the current deadline by which the loss detection 46 - It indicates the current deadline by which new ACK frames 327 This must be called whenever the loss detection deadline expires. 372 the deadline returned by `ossl_ackm_get_ack_deadline`. 402 This function returns the deadline at which the return value of 404 means that no deadline is currently applicable. If the deadline has already 405 passed, it may either return that deadline or `OSSL_TIME_ZERO`. 502 void (*fn)(OSSL_TIME deadline, 516 The ACK deadline callback is called whenever the value returned by [all …]
|
H A D | quic-io-arch.md | 351 - A deadline (if any is currently applicable).
|
/openssl/util/ |
H A D | quicserver.c | 35 OSSL_TIME deadline; in wait_for_activity() local 51 deadline = ossl_quic_tserver_get_deadline(qtserv); in wait_for_activity() 53 if (!ossl_time_is_infinite(deadline)) { in wait_for_activity() 54 timeout = ossl_time_to_timeval(ossl_time_subtract(deadline, in wait_for_activity()
|
/openssl/include/internal/ |
H A D | quic_ackm.h | 30 void (*fn)(OSSL_TIME deadline, 35 void (*fn)(OSSL_TIME deadline,
|
H A D | thread_arch.h | 52 OSSL_TIME deadline);
|
/openssl/test/ |
H A D | quic_ackm_test.c | 331 static void on_loss_detection_deadline_callback(OSSL_TIME deadline, void *arg) in on_loss_detection_deadline_callback() argument 333 *(OSSL_TIME *)arg = deadline; in on_loss_detection_deadline_callback() 417 OSSL_TIME deadline = ossl_ackm_get_loss_detection_deadline(h.ackm); in test_tx_ack_case_actual() local 420 if (!TEST_int_eq(ossl_time_compare(deadline, loss_detection_deadline), 0)) in test_tx_ack_case_actual() 424 if (!TEST_int_gt(ossl_time_compare(deadline, fake_time), 0)) in test_tx_ack_case_actual() 441 fake_time = ossl_time_add(deadline, ossl_ticks2time(1)); in test_tx_ack_case_actual() 897 static void on_ack_deadline_callback(OSSL_TIME deadline, in on_ack_deadline_callback() argument 900 ((OSSL_TIME *)arg)[pkt_space] = deadline; in on_ack_deadline_callback()
|
/openssl/doc/man7/ |
H A D | ossl-guide-quic-client-non-block.pod | 147 function can be used to determine what the deadline is for the next time we need 150 An alternative to using L<SSL_get_event_timeout(3)> to find the next deadline
|