• Tom Lane's avatar
    Set errno to zero before invoking SSL_read or SSL_write. It appears that · 4847d595
    Tom Lane authored
    at least in some Windows versions, these functions are capable of returning
    a failure indication without setting errno.  That puts us into an infinite
    loop if the previous value happened to be EINTR.  Per report from Brendan
    Hill.
    
    Back-patch to 8.2.  We could take it further back, but since this is only
    known to be an issue on Windows and we don't support Windows before 8.2,
    it does not seem worth the trouble.
    4847d595
be-secure.c 25.9 KB