Lines Matching defs:timeout
868 if (max_time == 0) /* no timeout */
879 return 0; /* clearly timeout */
898 * Call BIOerr(...) on timeout or error.
899 * Returns -1 on error, 0 on timeout, and 1 on success.
912 * Connect via given BIO using BIO_do_connect() until success/timeout/error.
913 * Parameter timeout == 0 means no timeout, < 0 means exactly one try.
917 * Returns -1 on error, 0 on timeout, and 1 on success.
919 int BIO_do_connect_retry(BIO *bio, int timeout, int nap_milliseconds)
921 int blocking = timeout <= 0;
922 time_t max_time = timeout > 0 ? time(NULL) + timeout : 0;
938 if (rv <= 0) { /* could be timeout or retryable error or fatal error */
962 if (timeout >= 0 && do_retry) {
964 /* will not actually wait if timeout == 0 (i.e., blocking BIO): */