BIO_sock_should_retry

Decide whether a socket BIO operation should be retried after return value i.

Synopsis

Declared in <openssl/bio.h>

int
BIO_sock_should_retry(int i);

Return Value

1 if the failure is retryable (EAGAIN/EINTR-style), or 0 otherwise.

Parameters

NameDescription
iResult from a socket read/write (negative on error, or zero in some cases).