Lines Matching defs:nap_milliseconds
861 static int bio_wait(BIO *bio, time_t max_time, unsigned int nap_milliseconds)
883 if (nap_milliseconds > 1000)
884 nap_milliseconds = 1000;
885 } else { /* for sec_diff > 0, take min(sec_diff * 1000, nap_milliseconds) */
886 if ((unsigned long)sec_diff * 1000 < nap_milliseconds)
887 nap_milliseconds = (unsigned int)sec_diff * 1000;
889 ossl_sleep(nap_milliseconds);
897 * the number of nap_milliseconds in order to avoid a tight busy loop.
901 int BIO_wait(BIO *bio, time_t max_time, unsigned int nap_milliseconds)
903 int rv = bio_wait(bio, max_time, nap_milliseconds);
915 * the given density: between polls sleep nap_milliseconds using BIO_wait()
919 int BIO_do_connect_retry(BIO *bio, int timeout, int nap_milliseconds)
930 if (nap_milliseconds < 0)
931 nap_milliseconds = 100;
965 rv = bio_wait(bio, max_time, nap_milliseconds);