Home
last modified time | relevance | path

Searched refs:timeleft (Results 1 – 7 of 7) sorted by relevance

/third_party/node/deps/openssl/openssl/ssl/
Dd1_lib.c287 struct timeval *dtls1_get_timeout(SSL *s, struct timeval *timeleft) in dtls1_get_timeout() argument
303 memset(timeleft, 0, sizeof(*timeleft)); in dtls1_get_timeout()
304 return timeleft; in dtls1_get_timeout()
308 memcpy(timeleft, &(s->d1->next_timeout), sizeof(struct timeval)); in dtls1_get_timeout()
309 timeleft->tv_sec -= timenow.tv_sec; in dtls1_get_timeout()
310 timeleft->tv_usec -= timenow.tv_usec; in dtls1_get_timeout()
311 if (timeleft->tv_usec < 0) { in dtls1_get_timeout()
312 timeleft->tv_sec--; in dtls1_get_timeout()
313 timeleft->tv_usec += 1000000; in dtls1_get_timeout()
320 if (timeleft->tv_sec == 0 && timeleft->tv_usec < 15000) { in dtls1_get_timeout()
[all …]
Dssl_local.h2623 __owur struct timeval *dtls1_get_timeout(SSL *s, struct timeval *timeleft);
/third_party/openssl/ssl/
Dd1_lib.c287 struct timeval *dtls1_get_timeout(SSL *s, struct timeval *timeleft) in dtls1_get_timeout() argument
303 memset(timeleft, 0, sizeof(*timeleft)); in dtls1_get_timeout()
304 return timeleft; in dtls1_get_timeout()
308 memcpy(timeleft, &(s->d1->next_timeout), sizeof(struct timeval)); in dtls1_get_timeout()
309 timeleft->tv_sec -= timenow.tv_sec; in dtls1_get_timeout()
310 timeleft->tv_usec -= timenow.tv_usec; in dtls1_get_timeout()
311 if (timeleft->tv_usec < 0) { in dtls1_get_timeout()
312 timeleft->tv_sec--; in dtls1_get_timeout()
313 timeleft->tv_usec += 1000000; in dtls1_get_timeout()
320 if (timeleft->tv_sec == 0 && timeleft->tv_usec < 15000) { in dtls1_get_timeout()
[all …]
Dssl_local.h2567 __owur struct timeval *dtls1_get_timeout(SSL *s, struct timeval *timeleft);
/third_party/openssl/crypto/bio/
Dbss_dgram.c201 struct timeval timenow, timeleft; in dgram_adjust_rcv_timeout() local
228 memcpy(&timeleft, &(data->next_timeout), sizeof(struct timeval)); in dgram_adjust_rcv_timeout()
229 if (timeleft.tv_usec < timenow.tv_usec) { in dgram_adjust_rcv_timeout()
230 timeleft.tv_usec = 1000000 - timenow.tv_usec + timeleft.tv_usec; in dgram_adjust_rcv_timeout()
231 timeleft.tv_sec--; in dgram_adjust_rcv_timeout()
233 timeleft.tv_usec -= timenow.tv_usec; in dgram_adjust_rcv_timeout()
235 if (timeleft.tv_sec < timenow.tv_sec) { in dgram_adjust_rcv_timeout()
236 timeleft.tv_sec = 0; in dgram_adjust_rcv_timeout()
237 timeleft.tv_usec = 1; in dgram_adjust_rcv_timeout()
239 timeleft.tv_sec -= timenow.tv_sec; in dgram_adjust_rcv_timeout()
[all …]
/third_party/node/deps/openssl/openssl/crypto/bio/
Dbss_dgram.c201 struct timeval timenow, timeleft; in dgram_adjust_rcv_timeout() local
228 memcpy(&timeleft, &(data->next_timeout), sizeof(struct timeval)); in dgram_adjust_rcv_timeout()
229 if (timeleft.tv_usec < timenow.tv_usec) { in dgram_adjust_rcv_timeout()
230 timeleft.tv_usec = 1000000 - timenow.tv_usec + timeleft.tv_usec; in dgram_adjust_rcv_timeout()
231 timeleft.tv_sec--; in dgram_adjust_rcv_timeout()
233 timeleft.tv_usec -= timenow.tv_usec; in dgram_adjust_rcv_timeout()
235 if (timeleft.tv_sec < timenow.tv_sec) { in dgram_adjust_rcv_timeout()
236 timeleft.tv_sec = 0; in dgram_adjust_rcv_timeout()
237 timeleft.tv_usec = 1; in dgram_adjust_rcv_timeout()
239 timeleft.tv_sec -= timenow.tv_sec; in dgram_adjust_rcv_timeout()
[all …]
/third_party/curl/tests/
Druntests.pl1727 my $timeleft=sprintf("remaining: %02d:%02d",
1735 $count, $total, $timeleft, $took, $duration);