Lines Matching refs:max_time
861 static int bio_wait(BIO *bio, time_t max_time, unsigned int nap_milliseconds)
868 if (max_time == 0) /* no timeout */
873 return BIO_socket_wait(fd, BIO_should_read(bio), max_time);
877 sec_diff = (long)(max_time - time(NULL)); /* might overflow */
882 if (sec_diff == 0) { /* we are below the 1 seconds resolution of max_time */
894 * Wait on (typically socket-based) BIO at most until max_time.
895 * Succeed immediately if max_time == 0.
901 int BIO_wait(BIO *bio, time_t max_time, unsigned int nap_milliseconds)
903 int rv = bio_wait(bio, max_time, nap_milliseconds);
922 time_t max_time = timeout > 0 ? time(NULL) + timeout : 0;
965 rv = bio_wait(bio, max_time, nap_milliseconds);