BIO_do_connect_retry

Drive BIO_do_connect() with retries until connected, failed, or timeout elapses.

Synopsis

Declared in <openssl/bio.h>

int
BIO_do_connect_retry(
    BIO* bio,
    int timeout,
    int nap_milliseconds);

Return Value

1 when connected, <=0 on failure or expiry (see BIO_should_retry()).

Parameters

NameDescription
bioConnect BIO to advance.
timeoutOverall timeout in seconds; 0 waits forever; <0 tries once without sleeping.
nap_millisecondsSleep between non-blocking retries (or <=0 for a default nap).