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

Name

Description

bio

Connect BIO to advance.

timeout

Overall timeout in seconds; 0 waits forever; <0 tries once without sleeping.

nap_milliseconds

Sleep between non‐blocking retries (or <=0 for a default nap).

Created with MrDocs