BIO_SOCKET_WAIT(3ssl) OpenSSL BIO_SOCKET_WAIT(3ssl) BIO_socket_wait BIO_wait BIO_do_connect_retry - BIO #include #ifndef OPENSSL_NO_SOCK int BIO_socket_wait(int fd, int for_read, time_t max_time); #endif int BIO_wait(BIO *bio, time_t max_time, unsigned int nap_milliseconds); int BIO_do_connect_retry(BIO *bio, int timeout, int nap_milliseconds); BIO_socket_wait() fd for_read 0 max_time. max_time == 0 ( ). BIO_wait() max_time bio ( ) bio . BIO_do_connect_retry() BIO_read(3). max_time == 0 ( ). nap_milliseconds . nap_milliseconds . BIO_do_connect_retry() bio . BIO_do_connect() . BIOs nap_milliseconds BIO_wait(). nap_milliseconds < 0 100 . timeout > 0 . 0 ( ) < 0 BIO_do_connect() . ERR_clear_error(). BIO_socket_wait() BIO_wait() BIO_do_connect_retry() -1 0 1 . BIO_do_connect(3) BIO_read(3) BIO_socket_wait() BIO_wait() BIO_do_connect_retry() OpenSSL 3.0. 2019-2020 OpenSSL. . Apache 2.0 ( ""). . LICENSE . 3 . . : . 3.6.2 7 2026 BIO_SOCKET_WAIT(3ssl)