Skip to content
Snippets Groups Projects
Select Git revision
  • benchmark-tools
  • postgres-lambda
  • master default
  • REL9_4_25
  • REL9_5_20
  • REL9_6_16
  • REL_10_11
  • REL_11_6
  • REL_12_1
  • REL_12_0
  • REL_12_RC1
  • REL_12_BETA4
  • REL9_4_24
  • REL9_5_19
  • REL9_6_15
  • REL_10_10
  • REL_11_5
  • REL_12_BETA3
  • REL9_4_23
  • REL9_5_18
  • REL9_6_14
  • REL_10_9
  • REL_11_4
23 results

be-secure.c

  • Tom Lane's avatar
    4847d595
    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
    History
    Set errno to zero before invoking SSL_read or SSL_write. It appears that
    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.