[issue32275] SSL socket methods don't retry on EINTR?

Julien Palard report at bugs.python.org
Mon Dec 11 06:28:00 EST 2017


Julien Palard <julien+python at palard.fr> added the comment:

Looks like this behavior is documented in the bio_should_retry(3) man page.

Basically bio_should_retry() tells if the error was non-fatal:

    int BIO_fd_should_retry(int i)
    {
        int err;

        if ((i == 0) || (i == -1)) {
            err = get_last_sys_error();

            return BIO_fd_non_fatal_error(err);
        }
        return 0;
    }

----------
nosy: +mdk

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32275>
_______________________________________


More information about the Python-bugs-list mailing list