• Paul Eggert's avatar
    Fix non-blocking GnuTLS with slow connection · 1a8d3112
    Paul Eggert authored
    Although the problem is reported for OS X (Bug#23982), it seems to
    be possible on other POSIXish platforms.
    * src/gnutls.c (emacs_gnutls_nonblock_errno) [!WINDOWSNT]:
    New function.
    (emacs_gnutls_handshake) [!WINDOWSNT]:
    Use it as the errno function, if non-blocking.
    (Fgnutls_boot): Use GNUTLS_NONBLOCK if non-blocking.
    1a8d3112
gnutls.c 56.3 KB