From 0c5c04d58e4efc04905a3f42e984d5f24c554a34 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Thu, 3 Mar 2016 05:14:48 +0000 Subject: Ensure TLS negotiation progress * src/gnutls.h (GNUTLS_EMACS_HANDSHAKES_LIMIT): Increase the number of retries so that we try for about a minute. * src/process.c (wait_reading_process_output): Ensure progress for DNS resolution and TLS negotiation. --- src/gnutls.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/gnutls.h') diff --git a/src/gnutls.h b/src/gnutls.h index d03332ec2b6..7418f8f84f4 100644 --- a/src/gnutls.h +++ b/src/gnutls.h @@ -25,8 +25,9 @@ along with GNU Emacs. If not, see . */ #include "lisp.h" -/* This limits the attempts to handshake per process (connection). */ -#define GNUTLS_EMACS_HANDSHAKES_LIMIT 100 +/* This limits the attempts to handshake per process (connection). It + should work out to about one minute in asynchronous cases. */ +#define GNUTLS_EMACS_HANDSHAKES_LIMIT 6000 typedef enum { -- cgit v1.2.1