]> granicus.if.org Git - mutt/commit
Fix gnutls tls_socket_write() to properly retry.
authorKevin McCarthy <kevin@8t8.us>
Mon, 21 Jan 2019 19:56:04 +0000 (11:56 -0800)
committerKevin McCarthy <kevin@8t8.us>
Mon, 21 Jan 2019 19:56:04 +0000 (11:56 -0800)
commit73b3151ebb43c817f86c64357141bad8fed249dd
tree8da10aeff5d2fc94cd9039739b71061f20d8453d
parent1b2dcb31eefbcec2825006bf5a16e11492d9e61e
Fix gnutls tls_socket_write() to properly retry.

Retry on GNUTLS_E_AGAIN and GNUTLS_E_INTERRUPTED.  This prevents an
aborted send due to a SIGWINCH, for instance.

Change tls_socket_read() to follow the same flow.  Don't bother
checking gnutls_error_is_fatal() because return codes besides AGAIN
and INTERRUPTED end up closing the connection regardless.  (We don't
handle handshakes and negotations during send/receive).
mutt_ssl_gnutls.c