Drive BIO_do_connect() with retries until connected, failed, or timeout elapses.
Declared in <openssl/bio.h>
int
BIO_do_connect_retry(
BIO* bio,
int timeout,
int nap_milliseconds);
1 when connected, <=0 on failure or expiry (see BIO_should_retry()).
| 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). |