diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2016-03-03 05:14:48 +0000 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2016-03-03 05:14:55 +0000 |
commit | 0c5c04d58e4efc04905a3f42e984d5f24c554a34 (patch) | |
tree | 0608eda84b96019257d13f46b77f2b3d4cb65abb /src/gnutls.h | |
parent | 227ab51db6517bda1a557391bebaa7882b51963e (diff) | |
download | emacs-0c5c04d58e4efc04905a3f42e984d5f24c554a34.tar.gz |
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.
Diffstat (limited to 'src/gnutls.h')
-rw-r--r-- | src/gnutls.h | 5 |
1 files changed, 3 insertions, 2 deletions
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 <http://www.gnu.org/licenses/>. */ #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 { |